This commit is contained in:
pererinha 2013-11-13 16:24:33 -02:00
parent 84181dc114
commit fede02ce67

View File

@ -514,7 +514,9 @@ class Crunchbutton_Chart extends Cana_Model {
$regex = '/' . $regex . '/'; $regex = '/' . $regex . '/';
preg_match( $regex, $permission, $matches ); preg_match( $regex, $permission, $matches );
if( count( $matches ) > 0 ){ if( count( $matches ) > 0 ){
$restaurants_ids[] = $matches[ 1 ]; if( is_numeric( $matches[ 1 ] ) ){
$restaurants_ids[] = $matches[ 1 ];
}
} }
} }
} }