Index: theme/theme.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views/theme/theme.inc,v
retrieving revision 1.43
diff -u -p -r1.43 theme.inc
--- theme/theme.inc	19 May 2008 16:24:09 -0000	1.43
+++ theme/theme.inc	21 May 2008 09:25:58 -0000
@@ -83,7 +83,7 @@ function template_preprocess_views_view(
   }
 
   // if administrator, add some links. These used to be tabs, but this is better.
-  if (user_access('administer views')) {
+  if (user_access('administer views') && module_exists('views_ui')) {
     $vars['admin_links_raw'] = array(
       array(
         'title' => t('Edit'),
