From fe4550bbdfdbb66b71d40325601235c456e37c30 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Thu, 18 Sep 2008 14:13:40 +0000 Subject: [PATCH] Fixing mistyped cfg var. Backported from HEAD. MDL-13894 --- lib/moodlelib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index bc1a842aef1..cea3e0dae68 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -7488,7 +7488,7 @@ function unzip_show_status ($list,$removepath) { function getremoteaddr() { global $CFG; - switch ($CFG->getremoteaddr) { + switch ($CFG->getremoteaddrconf)) { case 3: if (!empty($_SERVER['REMOTE_ADDR'])) { return cleanremoteaddr($_SERVER['REMOTE_ADDR']);