mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 20:51:30 +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'])) {
|
if(!empty($_GET['type'])) {
|
||||||
$type = $_GET['type'];
|
$type = $_GET['type'];
|
||||||
}
|
}
|
||||||
$data = $dms->getStatisticalData($type);
|
if($data = $dms->getStatisticalData($type)) {
|
||||||
switch($type) {
|
switch($type) {
|
||||||
case 'docsperstatus':
|
case 'docsperstatus':
|
||||||
foreach($data as &$rec) {
|
foreach($data as &$rec) {
|
||||||
$rec['key'] = getOverallStatusText((int) $rec['key']);
|
$rec['key'] = getOverallStatusText((int) $rec['key']);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($view) {
|
if($view) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user