Mercurial > hg > ywww
changeset 54:a04fc91bbd95
avoid warning on boolean
author | Charlie Root |
---|---|
date | Fri, 07 Jun 2019 16:35:16 -0400 |
parents | dd93cb4b77ad |
children | 72708ec9c0e6 |
files | mq.php |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mq.php Thu Jun 06 16:37:20 2019 -0400 +++ b/mq.php Fri Jun 07 16:35:16 2019 -0400 @@ -4,7 +4,7 @@ global $link; $res = mysqli_query($link, $q); include_once "dlog.php"; - dl("query from $d: ".mysqli_num_rows( $res )." $q\n"); + dl("query from $d: ".is_bool($res) ? $res : mysqli_num_rows( $res )." $q\n"); if ($res) { return $res; }