diff --git a/classes/Model/Popup.php b/classes/Model/Popup.php index 2239255e0..d47c0efd4 100644 --- a/classes/Model/Popup.php +++ b/classes/Model/Popup.php @@ -1198,10 +1198,10 @@ public function get_last_count_reset() { * @param array $a Array with `timestamp` key for comparison. * @param array $b Array with `timestamp` key for comparison. * - * @return bool + * @return int */ public function compare_resets( $a, $b ) { - return (float) $a['timestamp'] < (float) $b['timestamp']; + return (float) $b['timestamp'] <=> (float) $a['timestamp']; } /**