Index: src/sites/all/modules/contrib/while/while.module
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/sites/all/modules/contrib/while/while.module	(revision c370d8d309fbfb6a557007ac5a043bafb8a59d83)
+++ src/sites/all/modules/contrib/while/while.module	(revision )
@@ -71,10 +71,13 @@
   );
 
   // Add bundle info but bypass entity_load() as we cannot use it here.
+  $types = array();
+  if (db_table_exists('while_type')) {
-  $types = db_select('while_type', 't')
-    ->fields('t')
-    ->execute()
-    ->fetchAllAssoc('name');
+    $types = db_select('while_type', 't')
+      ->fields('t')
+      ->execute()
+      ->fetchAllAssoc('name');
+  }
 
   foreach ($types as $type_name => $info) {
     $return['while']['bundles'][$type_name] = array(
