@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | expiration_date='" . $expiration_date . "' |
| 73 | 73 | WHERE device_uid='" . $device_uid . "'"); |
| 74 | 74 | |
| 75 | - if($result === false){ |
|
| 75 | + if($result === FALSE){ |
|
| 76 | 76 | echo "Adding account failed: (" . $db->errno . ") " . $db->error; |
| 77 | 77 | } |
| 78 | 78 | } |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | expiration_date='" . $expiration_date . "' |
| 118 | 118 | WHERE device_uid='" . $device_uid . "'"); |
| 119 | 119 | |
| 120 | - if($result === false){ |
|
| 120 | + if($result === FALSE){ |
|
| 121 | 121 | echo "Adding account failed: (" . $db->errno . ") " . $db->error; |
| 122 | 122 | } |
| 123 | 123 | } |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | expiration_date='" . $expiration_date . "' |
| 165 | 165 | WHERE device_uid='" . $device_uid . "'"); |
| 166 | 166 | |
| 167 | - if($result === false){ |
|
| 167 | + if($result === FALSE){ |
|
| 168 | 168 | echo "Adding account failed: (" . $db->errno . ") " . $db->error; |
| 169 | 169 | } |
| 170 | 170 | } |
@@ -285,7 +285,7 @@ discard block |
||
| 285 | 285 | FROM votes |
| 286 | 286 | WHERE (postId = '" . $postId . "' AND device_uid = '" . $deviceUid . "')"); |
| 287 | 287 | |
| 288 | - if($result === false) |
|
| 288 | + if($result === FALSE) |
|
| 289 | 289 | { |
| 290 | 290 | $error = db_error(); |
| 291 | 291 | echo $error; |
@@ -313,7 +313,7 @@ discard block |
||
| 313 | 313 | $result = $db->query("INSERT INTO votes (device_uid, postId) |
| 314 | 314 | VALUES ('" . $device_uid . "','" . $postId . "') "); |
| 315 | 315 | |
| 316 | - if($result === false){ |
|
| 316 | + if($result === FALSE){ |
|
| 317 | 317 | $error = db_error(); |
| 318 | 318 | echo $error; |
| 319 | 319 | echo "Adding Vote failed: (" . $result->errno . ") " . $result->error; |
@@ -346,7 +346,7 @@ discard block |
||
| 346 | 346 | "','" . $device_uid . "','" . $name . "','" . $lat . "','" . $lng . "') "); |
| 347 | 347 | |
| 348 | 348 | $success = TRUE; |
| 349 | - if($result === false){ |
|
| 349 | + if($result === FALSE){ |
|
| 350 | 350 | $error = db_error(); |
| 351 | 351 | echo $error; |
| 352 | 352 | echo "Adding account failed: (" . $result->errno . ") " . $result->error; |
@@ -392,7 +392,7 @@ discard block |
||
| 392 | 392 | { |
| 393 | 393 | preg_match('/bot|spider|google|twitter/i', $_SERVER['HTTP_USER_AGENT'], $matches); |
| 394 | 394 | |
| 395 | - return (isset($matches[0])) ? true : false; |
|
| 395 | + return (isset($matches[0])) ? TRUE : FALSE; |
|
| 396 | 396 | } |
| 397 | 397 | |
| 398 | 398 | function botDeviceUidIsSet($config) |