Commit 94506230 authored by Josh Campbell's avatar Josh Campbell

Added return false on update and delete method

parent bcfe3fa4
...@@ -186,8 +186,8 @@ class MysqliDB { ...@@ -186,8 +186,8 @@ class MysqliDB {
$stmt->execute(); $stmt->execute();
$this->reset(); $this->reset();
if ($stmt->affected_rows) ($stmt->affected_rows) ? $result = true : $result = false;
return true; return $result;
} }
/** /**
...@@ -203,8 +203,8 @@ class MysqliDB { ...@@ -203,8 +203,8 @@ class MysqliDB {
$stmt->execute(); $stmt->execute();
$this->reset(); $this->reset();
if ($stmt->affected_rows) ($stmt->affected_rows) ? $result = true : $result = false;
return true; return $result;
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment