Browse Source

Enable image gallery in the documents tool - refs #7271

Angel Fernando Quiroz Campos 10 years ago
parent
commit
7a36a946c9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/document/document_slideshow.inc.php

+ 1 - 1
main/document/document_slideshow.inc.php

@@ -36,7 +36,7 @@ if (isset($_GET['action']) && $_GET['action'] == 'exit_slideshow') {
 // We check if there are images in this folder by searching the extensions for .jpg, .gif, .png
 // grabbing the list of all the documents of this folder
 //$all_files = $fileList['name'];
-$array_to_search = !empty($docs_and_folders) && is_array($docs_and_folders) ? $docs_and_folders : array();
+$array_to_search = !empty($documentAndFolders) && is_array($documentAndFolders) ? $documentAndFolders : array();
 
 if (count($array_to_search) > 0) {
 	while (list($key) = each($array_to_search)) {