More usage of wrapper functions
[mailer.git] / inc / modules / admin / what-config_points.php
index 0c60e88fe5443a62958a637fd90fe6cb2e0c8101..f64589d0164dad0d9c8f4f54e7de9bd5b5bec0e0 100644 (file)
@@ -134,7 +134,8 @@ WHERE
        } // 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);