simplified code getStatisticalData()

This commit is contained in:
Uwe Steinmann 2014-04-09 09:25:27 +02:00
parent 1687ba233f
commit 5e1564aa83

View File

@ -2091,9 +2091,7 @@ class SeedDMS_Core_DMS {
/* auxially variable $key is need because sqlite returns /* auxially variable $key is need because sqlite returns
* a key '`key`' * a key '`key`'
*/ */
$key = mktime(12, 0, 0, substr($res['key'], 5, 2), substr($res['key'], 8, 2), substr($res['key'], 0, 4)) * 1000; $res['key'] = mktime(12, 0, 0, substr($res['key'], 5, 2), substr($res['key'], 8, 2), substr($res['key'], 0, 4)) * 1000;
unset($res['key']);
$res['key'] = $key;
$res['total'] = $sum; $res['total'] = $sum;
} }
return $resArr; return $resArr;