mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
do not access $data if there is none
This commit is contained in:
parent
e8c9fd5e4e
commit
cf6b852233
|
@ -41,13 +41,14 @@ $type = 'docsperuser';
|
|||
if(!empty($_GET['type'])) {
|
||||
$type = $_GET['type'];
|
||||
}
|
||||
$data = $dms->getStatisticalData($type);
|
||||
switch($type) {
|
||||
case 'docsperstatus':
|
||||
foreach($data as &$rec) {
|
||||
$rec['key'] = getOverallStatusText((int) $rec['key']);
|
||||
}
|
||||
break;
|
||||
if($data = $dms->getStatisticalData($type)) {
|
||||
switch($type) {
|
||||
case 'docsperstatus':
|
||||
foreach($data as &$rec) {
|
||||
$rec['key'] = getOverallStatusText((int) $rec['key']);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if($view) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user