# HG changeset patch # User Charlie Root # Date 1559939716 14400 # Node ID a04fc91bbd95394365990262de2a74e43d6fbabd # Parent dd93cb4b77adecd9c3246002226a137668312cea avoid warning on boolean diff -r dd93cb4b77ad -r a04fc91bbd95 mq.php --- 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; }