@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | expiration_date='" . $expiration_date . "' |
75 | 75 | WHERE device_uid='" . $device_uid . "'"); |
76 | 76 | |
77 | - if($result === false){ |
|
77 | + if($result === FALSE){ |
|
78 | 78 | echo "Adding account failed: (" . $db->errno . ") " . $db->error; |
79 | 79 | } |
80 | 80 | } |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | expiration_date='" . $expiration_date . "' |
120 | 120 | WHERE device_uid='" . $device_uid . "'"); |
121 | 121 | |
122 | - if($result === false){ |
|
122 | + if($result === FALSE){ |
|
123 | 123 | echo "Adding account failed: (" . $db->errno . ") " . $db->error; |
124 | 124 | } |
125 | 125 | } |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | expiration_date='" . $expiration_date . "' |
167 | 167 | WHERE device_uid='" . $device_uid . "'"); |
168 | 168 | |
169 | - if($result === false){ |
|
169 | + if($result === FALSE){ |
|
170 | 170 | echo "Adding account failed: (" . $db->errno . ") " . $db->error; |
171 | 171 | } |
172 | 172 | } |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | $result = $db->query("INSERT INTO votes (device_uid, postId) |
287 | 287 | VALUES ('" . $device_uid . "','" . $postId . "') "); |
288 | 288 | |
289 | - if($result === false){ |
|
289 | + if($result === FALSE){ |
|
290 | 290 | $error = db_error(); |
291 | 291 | echo $error; |
292 | 292 | echo "Adding Vote failed: (" . $result->errno . ") " . $result->error; |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | "','" . $device_uid . "','" . $name . "','" . $lat . "','" . $lng . "') "); |
320 | 320 | |
321 | 321 | $success = TRUE; |
322 | - if($result === false){ |
|
322 | + if($result === FALSE){ |
|
323 | 323 | $error = db_error(); |
324 | 324 | echo $error; |
325 | 325 | echo "Adding account failed: (" . $result->errno . ") " . $result->error; |
@@ -365,7 +365,7 @@ discard block |
||
365 | 365 | { |
366 | 366 | preg_match('/bot|spider|google|twitter/i', $_SERVER['HTTP_USER_AGENT'], $matches); |
367 | 367 | |
368 | - return (isset($matches[0])) ? true : false; |
|
368 | + return (isset($matches[0])) ? TRUE : FALSE; |
|
369 | 369 | } |
370 | 370 | |
371 | 371 | function botDeviceUidIsSet($config) |