From 8a1240bfed54892ef4bafbd2fadcd319c172a2ae Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Fri, 18 Dec 2009 08:57:17 +0000 Subject: [PATCH] * printLink(): add the return value. --- trunk/module/common/control.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trunk/module/common/control.php b/trunk/module/common/control.php index add3564484..42f497a51f 100644 --- a/trunk/module/common/control.php +++ b/trunk/module/common/control.php @@ -281,7 +281,9 @@ EOT; /* 打印链接,会检查权限*/ public static function printLink($module, $method, $vars = '', $label, $target = '', $misc = '') { - if(common::hasPriv($module, $method)) echo html::a(helper::createLink($module, $method, $vars), $label, $target, $misc); + if(!common::hasPriv($module, $method)) return false; + echo html::a(helper::createLink($module, $method, $vars), $label, $target, $misc); + return true; } /**