? css_gzip-883116.patch
Index: css_gzip.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/css_gzip/css_gzip.module,v
retrieving revision 1.5.2.2
diff -u -p -r1.5.2.2 css_gzip.module
--- css_gzip.module	27 Oct 2009 00:39:53 -0000	1.5.2.2
+++ css_gzip.module	16 Aug 2010 16:29:08 -0000
@@ -114,6 +114,9 @@ function css_gzip_exit() {
     // Extract external css files from html document
     $css = explode('<link type="text/css" rel="stylesheet" ', $buffer);
     array_shift($css);
+    if (!is_array($css) || count($css) == 0) {
+      return;
+    }
     foreach ($css as $key => $value) {
       // Only grab the first one, containing the css filename.
       $css[$key] = array_shift(explode(' />', $value));
