Skip to content

Commit 909019d

Browse files
committed
fix issue #20 - sometimes status is NULL
1 parent 3805885 commit 909019d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/WebDriver/AbstractWebDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ protected function curl($requestMethod, $command, $parameters = null, $extraOpti
134134
}
135135

136136
// if not success, throw exception
137-
if ($results['status'] !== 0) {
137+
if ((int) $results['status'] !== 0) {
138138
throw WebDriverException::factory($results['status'], $message);
139139
}
140140

0 commit comments

Comments
 (0)