All pastes #54702 Raw Edit

JensT

public text v1 · immutable
#54702 ·published 2006-05-10 09:32 UTC
rendered paste body
RCS file: /repository/kronolith/lib/Block/monthlist.php,v
retrieving revision 1.41
diff -u -r1.41 monthlist.php
--- lib/Block/monthlist.php     9 May 2006 21:47:53 -0000       1.41
+++ lib/Block/monthlist.php     10 May 2006 09:29:09 -0000
@@ -93,8 +93,9 @@
                 continue;
             }

-            if (($this->_params['maxevents'] > 0) &&
-                ($totalevents >= $this->_params['maxevents'])) {
+            if (isset($this->_params['maxevents']) &&
+               $this->_params['maxevents'] > 0 &&
+                $totalevents >= $this->_params['maxevents']) {
                 break;
             }