From fede02ce67ecfefa8e674d3feaef4d534b4e974c Mon Sep 17 00:00:00 2001 From: pererinha Date: Wed, 13 Nov 2013 16:24:33 -0200 Subject: [PATCH] partial #2030 --- include/library/Crunchbutton/Chart.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/library/Crunchbutton/Chart.php b/include/library/Crunchbutton/Chart.php index ccbcd2b66..fb954cf37 100644 --- a/include/library/Crunchbutton/Chart.php +++ b/include/library/Crunchbutton/Chart.php @@ -514,7 +514,9 @@ class Crunchbutton_Chart extends Cana_Model { $regex = '/' . $regex . '/'; preg_match( $regex, $permission, $matches ); if( count( $matches ) > 0 ){ - $restaurants_ids[] = $matches[ 1 ]; + if( is_numeric( $matches[ 1 ] ) ){ + $restaurants_ids[] = $matches[ 1 ]; + } } } }