| @@ 30-39 (lines=10) @@ | ||
| 27 | // Pokemon Test |
|
| 28 | $result = $mysqli->query(req_tester_pokemon()); |
|
| 29 | ||
| 30 | if (!is_object($result)) { |
|
| 31 | $lock_msg .= "Error: No Pokémon database found<br>"; |
|
| 32 | } else { |
|
| 33 | $data = $result->fetch_object(); |
|
| 34 | $total = $data->total; |
|
| 35 | ||
| 36 | if ($total == 0) { |
|
| 37 | $lock_msg .= "Error: No Pokémon found is your database<br>"; |
|
| 38 | } |
|
| 39 | } |
|
| 40 | ||
| 41 | // Gym Test |
|
| 42 | $result = $mysqli->query(req_tester_gym()); |
|
| @@ 44-53 (lines=10) @@ | ||
| 41 | // Gym Test |
|
| 42 | $result = $mysqli->query(req_tester_gym()); |
|
| 43 | ||
| 44 | if (!is_object($result)) { |
|
| 45 | $lock_msg .= "Error: No Gym database found<br>"; |
|
| 46 | } else { |
|
| 47 | $data = $result->fetch_object(); |
|
| 48 | $total = $data->total; |
|
| 49 | ||
| 50 | if ($total == 0) { |
|
| 51 | $lock_msg .= "Error: No Gym found is your database<br>"; |
|
| 52 | } |
|
| 53 | } |
|
| 54 | ||
| 55 | ||
| 56 | // Pokéstop Test |
|
| @@ 59-68 (lines=10) @@ | ||
| 56 | // Pokéstop Test |
|
| 57 | $result = $mysqli->query(req_tester_pokestop()); |
|
| 58 | ||
| 59 | if (!is_object($result)) { |
|
| 60 | $lock_msg .= "Error: No Pokestop database found<br>"; |
|
| 61 | } else { |
|
| 62 | $data = $result->fetch_object(); |
|
| 63 | $total = $data->total; |
|
| 64 | ||
| 65 | if ($total == 0) { |
|
| 66 | $lock_msg .= "Error: No Pokestop found in your database<br>"; |
|
| 67 | } |
|
| 68 | } |
|
| 69 | ||
| 70 | return $lock_msg; |
|
| 71 | } |
|