- if ((isset($SQL)) && (is_array($SQL)) && (!empty($SQL[0])))
- {
- if (strpos($SQL[0], "INSERT") > -1)
- {
- $result = SQL_QUERY_ESC("SELECT id FROM "._MYSQL_PREFIX."_refdepths WHERE level='%s' LIMIT 1",
- array(bigintval($_POST['lvl'])), __FILE__, __LINE__);
+
+ if ((isset($SQLs)) && (is_array($SQLs)) && (!empty($SQLs[0]))) {
+ if (strpos($SQLs[0], "INSERT") > -1) {
+ $result = SQL_QUERY_ESC("SELECT id FROM `{!_MYSQL_PREFIX!}_refdepths` WHERE level='%s' LIMIT 1",
+ array(bigintval($_POST['lvl'])), __FILE__, __LINE__);