* printLink(): add the return value.

This commit is contained in:
wangchunsheng
2009-12-18 08:57:17 +00:00
parent 4e65eeb1de
commit 24a44a8388
+3 -1
View File
@@ -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;
}
/**