Commit 46c71688 authored by Dries's avatar Dries
Browse files

- Patch #204955 by chx: fixed E_ALL warning.

parent 0d97679b
......@@ -323,7 +323,7 @@ function upload_nodeapi(&$node, $op, $teaser) {
break;
case 'search result':
return is_array($node->files) ? format_plural(count($node->files), '1 attachment', '@count attachments') : NULL;
return isset($node->files) && is_array($node->files) ? format_plural(count($node->files), '1 attachment', '@count attachments') : NULL;
case 'rss item':
if (is_array($node->files)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment