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

View File

@ -514,12 +514,14 @@ 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 ){
if( is_numeric( $matches[ 1 ] ) ){
$restaurants_ids[] = $matches[ 1 ]; $restaurants_ids[] = $matches[ 1 ];
} }
} }
} }
} }
} }
}
return array_unique( $restaurants_ids ); return array_unique( $restaurants_ids );
} }