Skip to content

Commit 9ca5156

Browse files
committed
Remove duplicate error messages
1 parent 75cc8c8 commit 9ca5156

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

explain.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@
4141
$query = Database::find($label)->query($sample);
4242
Database::find($label)->enable_fatal_errors();
4343

44-
if (is_null($query)) {
45-
$return['Warnings'][] = array('Code' => Database::find($label)->_errno(), 'Level' => 'Error', 'Message' => Database::find($label)->_errstr());
46-
}
47-
else {
44+
if (!is_null($query)) {
4845
while ($row = $query->fetch_assoc()) {
4946
$row['possible_keys'] = str_replace(',', ', ', $row['possible_keys']);
5047
$row['ref'] = str_replace(',', ', ', $row['ref']);

0 commit comments

Comments
 (0)