|
|
@@ -44,8 +44,8 @@ class Database {
|
|
|
trigger_error('Database failed: ' . $this->handle->connect_error, E_USER_ERROR);
|
|
|
exit(1);
|
|
|
} else if($res->num_rows < 1) {
|
|
|
- echo "This shouldn't happen..2";
|
|
|
- exit(1);
|
|
|
+ error_log("This shouldn't happen..2");
|
|
|
+ //exit(1);
|
|
|
}
|
|
|
|
|
|
return $res->fetch_all(MYSQLI_ASSOC);
|
|
|
@@ -64,8 +64,8 @@ class Database {
|
|
|
trigger_error('Database failed: ' . $this->handle->connect_error, E_USER_ERROR);
|
|
|
exit(1);
|
|
|
} else if($res->num_rows < 1) {
|
|
|
- echo "This shouldn't happen..3";
|
|
|
- exit(1);
|
|
|
+ error_log("This shouldn't happen..3");
|
|
|
+ //exit(1);
|
|
|
}
|
|
|
|
|
|
return $res->fetch_all(MYSQLI_ASSOC);
|
|
|
@@ -80,7 +80,7 @@ class Database {
|
|
|
trigger_error('Database failed: ' . $this->handle->connect_error, E_USER_ERROR);
|
|
|
exit(1);
|
|
|
} else if($res->num_rows < 1) {
|
|
|
- echo "This shouldn't happen..4";
|
|
|
+ error_log("This shouldn't happen..4");
|
|
|
exit(1);
|
|
|
}
|
|
|
|
|
|
@@ -96,8 +96,8 @@ class Database {
|
|
|
trigger_error('Database failed: ' . $this->handle->connect_error, E_USER_ERROR);
|
|
|
exit(1);
|
|
|
} else if($res->num_rows < 1) {
|
|
|
- echo "This shouldn't happen..5";
|
|
|
- exit(1);
|
|
|
+ error_log("This shouldn't happen..5");
|
|
|
+ //exit(1);
|
|
|
}
|
|
|
|
|
|
return $res->fetch_all(MYSQLI_NUM);
|