diff --git a/include/Webservices/VTQL_Parser.php b/include/Webservices/VTQL_Parser.php index ecd4e2517e6d2bee90f0f17715e9e0f742642ef3..0537eda0f3246a3bbcb87b92cb58f86873dcb7b6 100644 --- a/include/Webservices/VTQL_Parser.php +++ b/include/Webservices/VTQL_Parser.php @@ -205,6 +205,9 @@ function buildSelectStmt($sqlDump){ $accessControlQuery = $meta->getEntityAccessControlQuery(); $this->query = $this->query.' '.$accessControlQuery; if($sqlDump['where_condition']){ + // ensure init before use + if(!isset($sqlDump['where_condition']['operators'])) $sqlDump['where_condition']['operators'] = array(); + if((sizeof($sqlDump['where_condition']['column_names']) == sizeof($sqlDump['where_condition']['column_values'])) && (sizeof($sqlDump['where_condition']['column_operators']) == sizeof($sqlDump['where_condition']['operators'])+1)){