]> git.mjollnir.org Git - moodle.git/commitdiff
Both Oracle and MSSQL don't like double quotes for literals.
authorstronk7 <stronk7>
Tue, 5 Sep 2006 18:06:53 +0000 (18:06 +0000)
committerstronk7 <stronk7>
Tue, 5 Sep 2006 18:06:53 +0000 (18:06 +0000)
lib/accesslib.php

index 8041ab61313c04b8f82432391d24943a61f8e58c..71a88dcfb29260f2ef2acee72dc80121a124491f 100755 (executable)
@@ -1587,7 +1587,7 @@ function role_context_capabilities($roleid, $context, $cap='') {
     $contexts = '('.implode(',', $contexts).')';
     
     if ($cap) {
-        $search = ' AND rc.capability = "'.$cap.'" ';
+        $search = " AND rc.capability = '$cap' ";
     } else {
         $search = '';  
     }