Permalink
Browse files

MDL-55886 block_rss_client: fix oracle compatibility

  • Loading branch information...
danpoltawski committed Sep 7, 2016
1 parent ddd8dc0 commit c561b23d8f209bf3b311c5ea2d9a75e92f86a17c
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 c561b23

Please sign in to comment.