? 586546_icp.patch
Index: imagecache_profiles.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/imagecache_profiles/imagecache_profiles.module,v
retrieving revision 1.4.2.7
diff -u -p -r1.4.2.7 imagecache_profiles.module
--- imagecache_profiles.module	20 Sep 2009 21:54:40 -0000	1.4.2.7
+++ imagecache_profiles.module	25 Sep 2009 18:19:13 -0000
@@ -38,7 +38,7 @@ function imagecache_profiles_preprocess_
       }
     }
     // If viewing a comment
-    if (array_key_exists('cid', get_object_vars($account))) {
+    if (is_object($account) && array_key_exists('cid', get_object_vars($account))) {
       if (variable_get('user_picture_imagecache_comments', 0)) {
         $size = variable_get('user_picture_imagecache_comments', 0);
       }
