aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/views.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-06 01:05:09 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-06 01:05:09 +0000
commit9dc42a9254fe971e8d4765a62ee83bc70a1d2fb7 (patch)
tree8917234cd8112db765d7947141643e4f2db73413 /engine/lib/views.php
parentdcc504978e665d164a2533196f707914cf841518 (diff)
downloadelgg-9dc42a9254fe971e8d4765a62ee83bc70a1d2fb7.tar.gz
elgg-9dc42a9254fe971e8d4765a62ee83bc70a1d2fb7.tar.bz2
Fixes #2774 - fixes several E_NOTICE issues - mostly due to accessign array indexes
git-svn-id: http://code.elgg.org/elgg/trunk@7844 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/views.php')
-rw-r--r--engine/lib/views.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/lib/views.php b/engine/lib/views.php
index 364f4618e..c97a214a1 100644
--- a/engine/lib/views.php
+++ b/engine/lib/views.php
@@ -581,6 +581,7 @@ function extend_view($view, $view_name, $priority = 501, $viewtype = '') {
*/
function elgg_view_page($title, $body, $page_shell = 'default', $vars = array()) {
+ $messages = null;
if (count_messages()) {
// get messages - try for errors first
$messages = system_messages(NULL, "error");
@@ -857,7 +858,7 @@ function elgg_view_annotation(ElggAnnotation $annotation, $full = true, $bypass
* @return string The list of entities
* @access private
*/
-function elgg_view_entity_list($entities, $count, $offset, $limit, $full_view = true,
+function elgg_view_entity_list($entities, $count, $offset = 0, $limit = 10, $full_view = true,
$list_type_toggle = true, $pagination = true) {
if (!is_int($offset)) {