From 28800f02690d7fd77d4c25b62e67741241bd91c1 Mon Sep 17 00:00:00 2001 From: dongsheng Date: Sun, 15 Jun 2008 09:19:10 +0000 Subject: [PATCH] "MDL-14129,fix print_error" --- userpix/index.php | 2 +- userpix/upgrade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/userpix/index.php b/userpix/index.php index db102f8c53b97..33cb895c9799c 100644 --- a/userpix/index.php +++ b/userpix/index.php @@ -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"); diff --git a/userpix/upgrade.php b/userpix/upgrade.php index d4f7a9ac2378f..e83f2fdba47e4 100644 --- a/userpix/upgrade.php +++ b/userpix/upgrade.php @@ -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");