--- img_assist.module.orig 2009-02-13 16:58:27.000000000 +0000 +++ img_assist.module 2009-03-28 14:14:22.000000000 +0000 @@ -665,6 +665,7 @@ function img_assist_header_form(&$form_s // Get my images and count. $myimages = views_get_view('img_assist_browser'); $myimages->set_arguments(array($user->uid)); + $myimages->get_total_rows=1; // in case the default view has been overridden $myimages->execute(); $options['img_assist_browser/' . $user->uid] = t('My Images') ." ($myimages->total_rows)"; @@ -672,6 +673,7 @@ function img_assist_header_form(&$form_s if (user_access('access all images')) { $allimages = views_get_view('img_assist_browser'); $allimages->set_arguments(array('all')); + $allimages->get_total_rows=1; // in case the default view has been overridden $allimages->execute(); $options['img_assist_browser/all'] = t('All Images') ." ($allimages->total_rows)"; }