Only in image_old: .DS_Store Only in image_old/contrib: .DS_Store diff -urp image_old/contrib/image_attach/image_attach.module image/contrib/image_attach/image_attach.module --- image_old/contrib/image_attach/image_attach.module 2007-12-27 00:30:14.000000000 -0600 +++ image/contrib/image_attach/image_attach.module 2007-12-29 10:38:43.000000000 -0600 @@ -242,7 +242,10 @@ function image_attach_nodeapi(&$node, $o } switch ($op) { case 'prepare': - if (file_check_upload('image')) { + $validators = array( + 'file_validate_is_image' => array(), + ); + if (file_save_upload('image', $validators)) { $image->title = $_POST['image_title']; $image->uid = $node->uid; $image->name = $node->name; @@ -325,7 +328,8 @@ function image_attach_nodeapi(&$node, $o */ function _image_attach_get_image_nodes() { $result = db_query(db_rewrite_sql("SELECT n.nid, n.title FROM {node} n WHERE n.status=1 AND type='image' ORDER BY n.sticky DESC, n.title ASC")); - if (db_num_rows($result) == 0) { + $result_count = db_result(db_query("SELECT COUNT(*) FROM {node} n WHERE n.status=1 AND type='image'")); + if ($result_count == 0) { return array(); }