} // END - switch
if ((isSqlsValid()) && (isSqlsValid())) {
- if (strpos($GLOBALS['sqls'][0], 'INSERT') > -1) {
+ // Is INSERT there?
+ if (isInString('INSERT', $GLOBALS['sqls'][0])) {
$result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE `level`=%s LIMIT 1",
array(bigintval(postRequestParameter('level'))), __FILE__, __LINE__);
SQL_FREERESULT($result);