@@ -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 | } |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | FROM votes |
289 | 289 | WHERE (postId = '" . $postId . "' AND device_uid = '" . $deviceUid . "')"); |
290 | 290 | |
291 | - if($result === false) |
|
291 | + if($result === FALSE) |
|
292 | 292 | { |
293 | 293 | $error = db_error(); |
294 | 294 | echo $error; |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | $result = $db->query("INSERT INTO votes (device_uid, postId, type) |
320 | 320 | VALUES ('" . $device_uid . "','" . $postId . "','" . $voteType . "')"); |
321 | 321 | |
322 | - if($result === false){ |
|
322 | + if($result === FALSE){ |
|
323 | 323 | $error = db_error(); |
324 | 324 | echo $error; |
325 | 325 | echo "Adding Vote failed: (" . $result->errno . ") " . $result->error; |
@@ -352,7 +352,7 @@ discard block |
||
352 | 352 | "','" . $device_uid . "','" . $name . "','" . $lat . "','" . $lng . "') "); |
353 | 353 | |
354 | 354 | $success = TRUE; |
355 | - if($result === false){ |
|
355 | + if($result === FALSE){ |
|
356 | 356 | $error = db_error(); |
357 | 357 | echo $error; |
358 | 358 | echo "Adding account failed: (" . $result->errno . ") " . $result->error; |
@@ -398,7 +398,7 @@ discard block |
||
398 | 398 | { |
399 | 399 | preg_match('/bot|spider|google|twitter/i', $_SERVER['HTTP_USER_AGENT'], $matches); |
400 | 400 | |
401 | - return (isset($matches[0])) ? true : false; |
|
401 | + return (isset($matches[0])) ? TRUE : FALSE; |
|
402 | 402 | } |
403 | 403 | |
404 | 404 | function botDeviceUidIsSet($config) |