diff --git media_youtube.module media_youtube.module index 2a7e792..1514e84 100644 --- media_youtube.module +++ media_youtube.module @@ -73,7 +73,9 @@ function media_youtube_theme($existing, $type, $theme, $path) { * Implementation of hook_flush_caches(). */ function media_youtube_flush_caches() { - return array('cache_media_youtube_status'); + if (db_table_exists('cache_media_youtube_status')) { + return array('cache_media_youtube_status'); + } } /**