diff --git includes/view.inc includes/view.inc
index 9e0f44f..24a1df9 100644
--- includes/view.inc
+++ includes/view.inc
@@ -832,29 +832,33 @@ class view extends views_db_object {
       // Initialize the style plugin.
       $this->init_style();
 
-      $this->style_plugin->pre_render($this->result);
-
-      // Let modules modify the view just prior to rendering it.
-      foreach (module_implements('views_pre_render') as $module) {
-        $function = $module . '_views_pre_render';
-        $function($this);
-      }
+      // Don't run pre_render if there are not results.
+      if (!empty($this->result)) {
+        $this->style_plugin->pre_render($this->result);
+
+        // Let modules modify the view just prior to rendering it.
+        foreach (module_implements('views_pre_render') as $module) {
+          $function = $module . '_views_pre_render';
+          $function($this);
+        }
 
-      // Let the theme play too, because pre render is a very themey thing.
-      $function = $GLOBALS['theme'] . '_views_pre_render';
-      if (function_exists($function)) {
-        $function($this, $this->display_handler->output, $cache);
-      }
+        // Let the theme play too, because pre render is a very themey thing.
+        $function = $GLOBALS['theme'] . '_views_pre_render';
+        if (function_exists($function)) {
+          $function($this, $this->display_handler->output, $cache);
+        }
 
-      // Give field handlers the opportunity to perform additional queries
-      // using the entire resultset prior to rendering.
-      if ($this->style_plugin->uses_fields()) {
-        foreach ($this->field as $id => $handler) {
-          if (!empty($this->field[$id])) {
-            $this->field[$id]->pre_render($this->result);
+        // Give field handlers the opportunity to perform additional queries
+        // using the entire resultset prior to rendering.
+        if ($this->style_plugin->uses_fields()) {
+          foreach ($this->field as $id => $handler) {
+            if (!empty($this->field[$id])) {
+              $this->field[$id]->pre_render($this->result);
+            }
           }
         }
       }
+
       $this->display_handler->output = $this->display_handler->render();
       if ($cache) {
         $cache->cache_set('output');
