"MDL-14129,fix print_error"
authordongsheng <dongsheng>
Sun, 15 Jun 2008 09:19:10 +0000 (09:19 +0000)
committerdongsheng <dongsheng>
Sun, 15 Jun 2008 09:19:10 +0000 (09:19 +0000)
userpix/index.php
userpix/upgrade.php

index db102f8..33cb895 100644 (file)
@@ -14,7 +14,7 @@
     require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
 
     if (!$users = $DB->get_records("user", array("picture"=>"1"), "lastaccess DESC", "id,firstname,lastname")) {
-        print_error("no users!");
+        print_error("nousers");
     }
 
     $title = get_string("users");
index d4f7a9a..e83f2fd 100644 (file)
@@ -10,7 +10,7 @@
     require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
 
     if (!$users = $DB->get_records("user", array("picture"=>"1"), "lastaccess DESC", "id,firstname,lastname")) {
-        print_error("no users!");
+        print_error('nousers');
     }
 
     $title = get_string("users");