浏览代码

[svn r19977] Added forgotten break

Yannick Warnier 16 年之前
父节点
当前提交
eed1510817
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      main/inc/lib/tablesort.lib.php

+ 2 - 0
main/inc/lib/tablesort.lib.php

@@ -114,6 +114,7 @@ class TableSort
 				break;
 			case SORT_DATE :
 				$compare_function = 'strtotime(strip_tags($el1)) > strtotime(strip_tags($el2))';
+				break;
             case SORT_STRING :
             default:
                 $compare_function = 'strnatcmp(TableSort::orderingstring(strip_tags($el1)),TableSort::orderingstring(strip_tags($el2))) > 0';
@@ -247,6 +248,7 @@ class TableSort
 				break;
 			case SORT_DATE :
 				$compare_function = 'strtotime(strip_tags($el1)) > strtotime(strip_tags($el2))';
+				break;
             case SORT_STRING :
             default:
                 $compare_function = 'strnatcmp(TableSort::orderingstring(strip_tags($el1)),TableSort::orderingstring(strip_tags($el2))) > 0';