]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14967
authormjollnir_ <mjollnir_>
Tue, 3 Jun 2008 09:47:47 +0000 (09:47 +0000)
committermjollnir_ <mjollnir_>
Tue, 3 Jun 2008 09:47:47 +0000 (09:47 +0000)
fixing a dml change that had the params added to the wrong function call.

admin/mnet/peers.php

index 5dcefbcd9f2b52f35282f9ad4b2858c2aabe3003..3bedb84ce0dba014bc013f27e49910aa3f621f2e 100644 (file)
@@ -176,10 +176,11 @@ if (($form = data_submitted()) && confirm_sesskey()) {
                                 WHERE 
                                     h.id <> ? AND  
                                     h.deleted = 0 AND  
-                                    h.applicationid=a.id');
+                                    h.applicationid=a.id',
+                        array($CFG->mnet_localhost_id));;
 
     if (empty($hosts)) $hosts = array();
-    $applications = $DB->get_records('mnet_application', array($CFG->mnet_localhost_id));
+    $applications = $DB->get_records('mnet_application');
     include('./peers.html');
 }
 ?>