mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
Fixes #3311 2.1.8 > 2.1.9 notice.
This commit is contained in:
@@ -567,6 +567,7 @@ function update_core_database($type = '')
|
|||||||
function update_218_to_219($type='')
|
function update_218_to_219($type='')
|
||||||
{
|
{
|
||||||
$sql = e107::getDb();
|
$sql = e107::getDb();
|
||||||
|
$just_check = ($type == 'do') ? false : true;
|
||||||
|
|
||||||
// add common video and audio media categories if missing.
|
// add common video and audio media categories if missing.
|
||||||
$count = $sql->select("core_media_cat","*","media_cat_category = '_common_video' LIMIT 1 ");
|
$count = $sql->select("core_media_cat","*","media_cat_category = '_common_video' LIMIT 1 ");
|
||||||
@@ -579,6 +580,8 @@ function update_core_database($type = '')
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return $just_check;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user