OSDN Git Service

show attach files of all page don't work. attach_list() condition bug fix.
authorpanda <panda>
Wed, 26 Feb 2003 11:56:36 +0000 (20:56 +0900)
committerpanda <panda>
Wed, 26 Feb 2003 11:56:36 +0000 (20:56 +0900)
plugin/attach.inc.php

index c954002..43ac460 100644 (file)
@@ -2,7 +2,7 @@
 /////////////////////////////////////////////////
 // PukiWiki - Yet another WikiWikiWeb clone.
 //
-//  $Id: attach.inc.php,v 1.14 2003/02/26 11:45:35 panda Exp $
+//  $Id: attach.inc.php,v 1.15 2003/02/26 11:56:36 panda Exp $
 //
 
 /*
@@ -412,7 +412,7 @@ function attach_list()
        $obj = &new AttachPages($refer);
        
        $msg = $_attach_messages[$refer == '' ? 'msg_listall' : 'msg_listpage'];
-       $body = array_key_exists($refer,$obj->pages) ?
+       $body = ($refer == '' or array_key_exists($refer,$obj->pages)) ?
                $obj->to_string($refer,FALSE) :
                $_attach_messages['err_noexist'];
        return array('msg'=>$msg,'body'=>$body);