Index: contrib/exhibit_apachesolr/exhibit_apachesolr.info
==============================================================
RCS file: contrib/filefield_styles/filefield_styles.module
diff -N contrib/filefield_styles/filefield_styles.module
--- /dev/null	2009-12-10 17:16:42.000000000 -0500
+++ filefield_styles.module	2010-07-14 18:50:50.000000000 -0500
@@ -101,9 +101,11 @@ function theme_filefield_styles_styles($
  */
 function filefield_styles_styles_presets() {
   $presets = array();
-  foreach (imagecache_presets() as $style) {
-    $presets['filefield'][$style['presetname']]['image'] = array($style['presetname']);
-    $presets['filefield'][$style['presetname']]['default'] = array($style['presetname']);
+  if (module_exists('imagecache')) {
+    foreach (imagecache_presets() as $style) {
+      $presets['filefield'][$style['presetname']]['image'] = array($style['presetname']);
+      $presets['filefield'][$style['presetname']]['default'] = array($style['presetname']);
+    }
   }
   return $presets;
 }
