Permalink
Browse files

MDL-55886 block_rss_client: fix oracle compatibility

  • Loading branch information...
danpoltawski committed Sep 7, 2016
1 parent 43f53ff commit 71d9056aef2128f2dae9374bc2a46bb36e5bce11
Showing with 2 additions and 1 deletion.
  1. +2 −1 blocks/rss_client/edit_form.php
@@ -56,7 +56,8 @@ protected function specific_definition($mform) {
$params += $inparams;
}
$titlesql = "CASE WHEN preferredtitle = '' THEN {$DB->sql_compare_text('title', 64)} ELSE preferredtitle END";
$titlesql = "CASE WHEN {$DB->sql_isempty('block_rss_client','preferredtitle', false, false)}
THEN {$DB->sql_compare_text('title', 64)} ELSE preferredtitle END";
$rssfeeds = $DB->get_records_sql_menu("
SELECT id, $titlesql

0 comments on commit 71d9056

Please sign in to comment.