mod-data MDLSITE-1076 Fixed up typo causing mod-data lastname search to break
authorSam Hemelryk <sam@moodle.com>
Tue, 12 Oct 2010 06:46:55 +0000 (06:46 +0000)
committerSam Hemelryk <sam@moodle.com>
Tue, 12 Oct 2010 06:46:55 +0000 (06:46 +0000)
mod/data/view.php

index f68f41c..1964ec7 100755 (executable)
         if (!empty($ln)) {
             $search_array[DATA_LASTNAME] = new stdClass();
             $search_array[DATA_LASTNAME]->sql     = '';
-            $search_array[DATA_FIRSTNAME]->params = array();
+            $search_array[DATA_LASTNAME]->params = array();
             $search_array[DATA_LASTNAME]->field   = 'u.lastname';
             $search_array[DATA_LASTNAME]->data    = $ln;
             $vals[] = $ln;