mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
fixed oracle SQL compatibility
This commit is contained in:
parent
d45be41f86
commit
87150ca16b
@ -95,7 +95,7 @@ function xmldb_lesson_upgrade($oldversion) {
|
||||
* Move any media files associated with the lesson to use the new file
|
||||
* API methods and structures.
|
||||
*/
|
||||
$lessons = $DB->get_records_select('lesson', 'mediafile != \'\'');
|
||||
$lessons = $DB->get_records_select('lesson', 'mediafile <> :empty', array('empty'=>$DB->sql_empty()));
|
||||
|
||||
$empty = $DB->sql_empty(); // silly oracle empty string handling workaround
|
||||
$sqlfrom = "FROM {lesson} l
|
||||
|
Loading…
x
Reference in New Issue
Block a user