Changeset 2314329
- Timestamp:
- 05/29/2020 11:19:49 AM (6 years ago)
- File:
-
- 1 edited
-
appful/trunk/singletons/api.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
appful/trunk/singletons/api.php
r2311798 r2314329 832 832 function fill_cache() { 833 833 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; 835 835 836 836 global $wpdb; … … 1118 1118 1119 1119 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; 1121 1121 1122 1122 $siteURL = $this->siteURL(); … … 1240 1240 if (strlen($value) > 0) { 1241 1241 if ($option_exists) { 1242 update_option($id, $value);1242 return update_option($id, $value); 1243 1243 } else { 1244 add_option($id, $value);1244 return add_option($id, $value); 1245 1245 } 1246 1246 } else { 1247 delete_option($id);1247 return delete_option($id); 1248 1248 } 1249 1249 }
Note: See TracChangeset
for help on using the changeset viewer.