* fix a bug : warning if no tasks.

This commit is contained in:
xia0ta0
2013-08-07 14:17:03 +08:00
parent 109d690f05
commit 88e92a19aa

View File

@@ -140,11 +140,10 @@ var browseType = '<?php echo $browseType;?>';
<td colspan='<?php echo $columns;?>'>
<div class='f-left'>
<?php
$canBatchEdit = common::hasPriv('task', 'batchEdit');
$canBatchClose = common::hasPriv('task', 'batchClose') and strtolower($browseType) != 'closedBy';
if(count($tasks))
{
$canBatchEdit = common::hasPriv('task', 'batchEdit');
$canBatchClose = common::hasPriv('task', 'batchClose') and strtolower($browseType) != 'closedBy';
echo "<div class='groupButton'>";
echo html::selectAll() . html::selectReverse();
echo "</div>";