diff --git a/library/Class/Article.php b/library/Class/Article.php index 46ab420645a8f7dc27e5a07804be2de0a916ce1b..96168ea0f0162d1c4ba3eb59185433a7b4bcb106 100644 --- a/library/Class/Article.php +++ b/library/Class/Article.php @@ -1172,47 +1172,6 @@ class Class_Article extends Storm_Model_Abstract { public static function hasEventForMonth($month) { - var_dump(date("d-m-Y")); - var_dump( date("d-m-Y", - mktime(0, - 0, - 0, - $month, - 1, - (date('m')>$month) ? date('Y') + 1 : date('Y') ))); - var_dump( date("d-m-Y", - mktime(0, - 0, - 0, - $month + 1, - 0, - (date('m')>$month) - ? date('Y') +1 - : date('Y') ))); - - var_dump(count(array_merge(Class_Article::getArticlesByPreferences(['event_date' => - date("d-m-Y", - mktime(0, - 0, - 0, - $month, - 1, - (date('m')>$month) ? date('Y') + 1 : date('Y') )), - 'events_only'=>'true', - 'status' => 3]), - Class_Article::getArticlesByPreferences(['event_date' => - date("d-m-Y", - mktime(0, - 0, - 0, - $month + 1, - 0, - (date('m')>$month) - ? date('Y') +1 - : date('Y') )), - 'events_only'=>'true', - 'status' => 3])))); - return 0 < count(array_merge(Class_Article::getArticlesByPreferences(['event_date' => date("d-m-Y", mktime(0,