Plugin Directory

Changeset 2314329


Ignore:
Timestamp:
05/29/2020 11:19:49 AM (6 years ago)
Author:
oskarn97
Message:

check for free space

File:
1 edited

Legend:

Unmodified
Added
Removed
  • appful/trunk/singletons/api.php

    r2311798 r2314329  
    832832    function fill_cache() {
    833833        if (strlen(get_option($this->wpml->filterVar("appful_session_id"), "")) > 0) {
    834             $this->save_option("appful_cache_last_refresh", time());
     834            if(!$this->save_option("appful_cache_last_refresh", time())) return;
    835835
    836836            global $wpdb;
     
    11181118
    11191119        if (strlen(get_option($this->wpml->filterVar("appful_session_id"), "")) > 0 || strlen(get_option("appful_quickconnect_session_id")) > 0 || (!empty($_REQUEST['_wpnonce']) && wp_verify_nonce($_REQUEST['_wpnonce'], "update-options") && isset($_POST["user"]) && isset($_POST["password"]))) {
    1120             $this->save_option("appful_register_last_refresh", time());
     1120            if(!$this->save_option("appful_register_last_refresh", time())) return;
    11211121
    11221122            $siteURL = $this->siteURL();
     
    12401240        if (strlen($value) > 0) {
    12411241            if ($option_exists) {
    1242                 update_option($id, $value);
     1242                return update_option($id, $value);
    12431243            } else {
    1244                 add_option($id, $value);
     1244                return add_option($id, $value);
    12451245            }
    12461246        } else {
    1247             delete_option($id);
     1247            return delete_option($id);
    12481248        }
    12491249    }
Note: See TracChangeset for help on using the changeset viewer.