Permalink
Browse files

Fixed a bug to export caused by removal of the email filters.

  • Loading branch information...
mchurch
mchurch committed Sep 10, 2004
1 parent a03a098 commit 7dc26ba47b0c617a2050df80108f342dffa46bb7
Showing with 6 additions and 4 deletions.
  1. +6 −4 mod/wiki/ewiki/plugins/moodle/moodle_wikidump.php
@@ -139,10 +139,12 @@ function ewiki_page_wiki_dump_send($exportbinaries=0, $exportformats=0, $withvir
$filestozip=array();
#-- disable protected email
- foreach($ewiki_plugins["link_url"] as $key => $linkplugin){
- if($linkplugin == "ewiki_email_protect_link"){
- unset($ewiki_plugins["link_url"][$key]);
- }
+ if (is_array($ewiki_plugins["link_url"])) {
+ foreach($ewiki_plugins["link_url"] as $key => $linkplugin){
+ if($linkplugin == "ewiki_email_protect_link"){
+ unset($ewiki_plugins["link_url"][$key]);
+ }
+ }
}
/// HTML-Export

0 comments on commit 7dc26ba

Please sign in to comment.