| @@ 290-293 (lines=4) @@ | ||
| 287 | self::SELECT_COUNT | |
| 288 |             ])) { | |
| 289 | $this->result = $this->c->query($this->sql); | |
| 290 |                 if ($this->c->error) { | |
| 291 |                     $this->log("There is an error " . $this->c->error, LogLevel::ERROR); | |
| 292 |                     throw new Exception("There was an error " . $this->c->error, E_ERROR); | |
| 293 | } | |
| 294 |             } else { | |
| 295 | $this->result = $this->c->real_query($this->sql); | |
| 296 |                 if ($this->c->errno) { | |
| @@ 296-299 (lines=4) @@ | ||
| 293 | } | |
| 294 |             } else { | |
| 295 | $this->result = $this->c->real_query($this->sql); | |
| 296 |                 if ($this->c->errno) { | |
| 297 |                     $this->log("There was an error " . $this->c->error, LogLevel::ERROR); | |
| 298 |                     throw new Exception("There was an error " . $this->c->error, E_ERROR); | |
| 299 | } | |
| 300 | } | |
| 301 | ||
| 302 |             if ($return == MYSQLI_OBJECT && ! is_null($class) && class_exists($class)) { | |