# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
--- a/supersized.run.inc
+++ b/supersized.run.inc
@@ -12,6 +12,10 @@
  */
 function supersized_run($node, &$page) {
 
+  $field = supersized_get_supersized_field($node);
+  if(!$field)
+    return;
+
   // Detect library.
   $library = libraries_load('supersized');
   if (empty($library['loaded'])) {
@@ -23,7 +27,6 @@
     return FALSE;
   }
 
-  $field = supersized_get_supersized_field($node);
   $items = $field['items'];
   $instance = $field['instance'];
 
