From 60193c64b0d4ec7209082f523def3b2d510b71ce Mon Sep 17 00:00:00 2001 From: ozh Date: Sat, 25 Apr 2015 11:47:05 +0200 Subject: [PATCH] Avoid notice when not set In case a custom DB layer has rewritten the SQL query for instance --- yourls-infos.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yourls-infos.php b/yourls-infos.php index ed3873c..81d2628 100644 --- a/yourls-infos.php +++ b/yourls-infos.php @@ -157,7 +157,7 @@ $_last_24h = array(); foreach( (array)$rows as $row ) { - if ( $row->time ) + if ( isset( $row->time ) ) $_last_24h[ "$row->time" ] = $row->count; } -- 2.45.0