Skip to content

Commit

Permalink
MDL-12030 Incorrect double quotes in sql
Browse files Browse the repository at this point in the history
  • Loading branch information
sam_marshall committed Nov 5, 2007
1 parent 6a021d6 commit 7135ffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
$count = count_records_sql('SELECT COUNT(*)
FROM '.$CFG->prefix.'block_instance
WHERE blockid = '.$blockid.' AND
pagetype = "course-view"');
pagetype = \'course-view\'');

if ($count>0) {
$blocklist = "<a href=\"{$CFG->wwwroot}/course/search.php?blocklist=$blockid&amp;sesskey={$USER->sesskey}\" ";
Expand Down

0 comments on commit 7135ffc

Please sign in to comment.