From 7427070a50cde8179e64a4ff6d2978bb5b47389e Mon Sep 17 00:00:00 2001 From: paca70 Date: Tue, 7 Sep 2004 05:15:37 +0000 Subject: [PATCH] Use get_site() to define SITEID eVS: ---------------------------------------------------------------------- --- lib/datalib.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/datalib.php b/lib/datalib.php index de7a36957fe..5f884b7cd26 100644 --- a/lib/datalib.php +++ b/lib/datalib.php @@ -1,8 +1,9 @@ id); -define('SITEID', 1); /// FUNCTIONS FOR DATABASE HANDLING //////////////////////////////// @@ -377,7 +378,7 @@ function count_records_sql($sql) { */ function get_record($table, $field1, $value1, $field2="", $value2="", $field3="", $value3="") { - global $CFG; + global $CFG ; $select = "WHERE $field1 = '$value1'";