Skip to content

Commit

Permalink
fix: resolve php7.2 warning if $data is false
Browse files Browse the repository at this point in the history
  • Loading branch information
micgro42 committed Mar 27, 2018
1 parent 8e62ad4 commit a2d1a32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/adapter_pdosqlite.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public function res2single($res) {
if(!$res) return false;

$data = $res->fetch(PDO::FETCH_NUM, PDO::FETCH_ORI_ABS, 0);
if(!count($data)) {
if(empty($data)) {
return false;
}
return $data[0];
Expand Down

0 comments on commit a2d1a32

Please sign in to comment.