more in naming convention applied, you should better kill inc/cache/*.cache files...
[mailer.git] / inc / modules / admin / what-config_points.php
index 8930f895b5eeb5a6a9ccafdb078c1ce9286f37c4..7d4abc3768c17e0bb5116306257f436128e171e2 100644 (file)
@@ -78,7 +78,7 @@ if (isset($_POST['ok']))
        switch ($_GET['sub'])
        {
        case "points":
-               $SQL[] = "UPDATE "._MYSQL_PREFIX."_config SET points_register='".$_POST['points_register']."', points_ref='".$_POST['points_ref']."' WHERE config='0' LIMIT 1";
+               $SQL[] = "UPDATE "._MYSQL_PREFIX."_config SET points_register='".$_POST['points_register']."', points_ref='".$_POST['points_ref']."' WHERE config=0 LIMIT 1";
                break;
 
        case "ref":
@@ -114,7 +114,7 @@ if (isset($_POST['ok']))
                // Update cache file
                if (GET_EXT_VERSION("cache") >= "0.1.2")
                {
-                       if ($CACHE->cache_file("refdepths", true)) $CACHE->cache_destroy();
+                       if ($cacheInstance->cache_file("refdepths", true)) $cacheInstance->cache_destroy();
                }
                break;
 
@@ -124,7 +124,7 @@ if (isset($_POST['ok']))
 allow_direct_pay='%s',
 reg_points_mode='%s',
 ref_payout='%d'
-WHERE config='0' LIMIT 1",
+WHERE config=0 LIMIT 1",
  $_POST['allow_direct_pay'],
  $_POST['reg_points_mode'],
  $REF
@@ -165,8 +165,8 @@ WHERE mails_confirmed < %d", $REF, $REF);
                        // Destroy config cache file here...
                        if (GET_EXT_VERSION("cache") >= "0.1.2")
                        {
-                               if ($CACHE->cache_file("config", true)) $CACHE->cache_destroy();
-                               unset($CFG_CACHE);
+                               if ($cacheInstance->cache_file("config", true)) $cacheInstance->cache_destroy();
+                               unset($cacheArray);
                        }
                }
                 else