@@ -36,7 +36,7 @@
// Check to see if any terms have been setup yet (for finding related based on taxonomy)
   $cached = cache_get('uc_upsell_terms');
-  if (!$cached->data) {
+  if (!isset($cached->data) || !$cached->data) {
     // If not, compute the terms. They are cleared daily by default. @TODO: Make this a config.
     uc_upsell_compute_terms();
   }
