Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cdnfsd_CacheFlush.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static function w3tc_flush_all( $extras = null ) {
$w3tc_config = Dispatcher::config();
$common = Dispatcher::component( 'Cdn_Core' );
$default_override = Cdn_Util::get_flush_manually_default_override();
if ( $w3tc_config->get_boolean( 'cdn.flush_manually', $default_override ) ) {
if ( $w3tc_config->get_boolean( 'cdn.flush_manually' ) === $default_override ) {
// in this mode flush only on purge button clicks.
if ( ! isset( $extras['ui_action'] ) ) {
return true;
Expand Down
2 changes: 1 addition & 1 deletion UsageStatistics_StorageWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public function maybe_flush_hotspot_data() {
*/
public function begin_flush_hotspot_data() {
$hotspot_endtime = $this->get_hotspot_end();
if ( is_null( $hotspot_endtime ) ) {
if ( null === $hotspot_endtime ) {
// if cache not recognized - means nothing is cached at all so stats not collected.
return 'not_needed';
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Google/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function __get($key)
$val = null;
}

if ($this->isAssociativeArray($val)) {
if (is_array($val) && $this->isAssociativeArray($val)) {
if (isset($this->$keyDataType) && 'map' == $this->$keyDataType) {
foreach ($val as $arrayKey => $arrayItem) {
$this->modelData[$key][$arrayKey] =
Expand Down