# 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.
Index: contributions/modules/rules/rules/rules.module
--- contributions/modules/rules/rules/rules.module Base (1.1.2.53)
+++ contributions/modules/rules/rules/rules.module Locally Modified (Based On 1.1.2.53)
@@ -35,8 +35,14 @@
 function rules_get_items($key = 'all') {
   // During module installation, the hook implementation of rules is not invoked,
   // as the module is not yet active. So we force it here to always return our own item infos.
-  return !module_exists('rules') ? rules_rules_item_info() : rules_gather_data('rules_item_info', $key);
+  if (module_exists('rules')) {
+    return rules_gather_data('rules_item_info', $key);
 }
+  else {
+    $info = rules_rules_item_info();
+    return $key == 'all' ? $info : $info[$key];
+  }
+}
 
 /**
  * Returns info about all defined data types
