]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-7455 Database Activity Fatal Error after removing filed used for sorting
authorskodak <skodak>
Mon, 11 Dec 2006 09:17:05 +0000 (09:17 +0000)
committerskodak <skodak>
Mon, 11 Dec 2006 09:17:05 +0000 (09:17 +0000)
mod/data/view.php

index d6e1700f9bd46f89d9217c809731d7c57ea41688..755ba4d78768c6e75d84636b8ac67b5ec07b1623 100755 (executable)
     }
 
 /// Find the field we are sorting on
-    if ($sort) {
-        
-        $sortfield = data_get_field_from_id($sort, $data);
+    if ($sort and $sortfield = data_get_field_from_id($sort, $data)) {
+
         $sortcontent = $sortfield->get_sort_field();
         $sortcontentfull = $sortfield->get_sort_sql('c.'.$sortcontent);