Commit e6c7564d authored by Alexander Butenko's avatar Alexander Butenko

Reformat getOne

parent a71834da
...@@ -217,15 +217,14 @@ class MysqliDb ...@@ -217,15 +217,14 @@ class MysqliDb
* *
* @return array Contains the returned rows from the select query. * @return array Contains the returned rows from the select query.
*/ */
public function getOne($tableName, $columns = '*') public function getOne($tableName, $columns = '*')
{ {
$res = $this->get ($tableName, 1, $columns); $res = $this->get ($tableName, 1, $columns);
if(isset($res[0])) { if (isset($res[0]))
return $res[0]; return $res[0];
} else {
return null; return null;
} }
}
/** /**
* *
......
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