diff --git a/gosa-core/include/class_listingSortIterator.inc b/gosa-core/include/class_listingSortIterator.inc
index 14aef7630feb6b312578acae870cb0e2b0753222..ed956b68d0e894bd52d1e6a7695003f7204dd1ad 100644 (file)
return $b - $a;
case 'date':
return $b - $a;
case 'date':
- list($d, $m, $y)= split('\.', $a);
+ if ($a == "") {
+ $a= "31.12.0000";
+ }
+ if ($b == "") {
+ $b= "31.12.0000";
+ }
+ list($d, $m, $y)= explode('.', $a);
$a= (int)sprintf("%04d%02d%02d", $y, $m, $d);
$a= (int)sprintf("%04d%02d%02d", $y, $m, $d);
- list($d, $m, $y)= split('\.', $b);
+ list($d, $m, $y)= explode('.', $b);
$b= (int)sprintf("%04d%02d%02d", $y, $m, $d);
return $b-$a;
$b= (int)sprintf("%04d%02d%02d", $y, $m, $d);
return $b-$a;