|
From: <luc...@us...> - 2013-09-26 12:38:15
|
Revision: 12095
http://sourceforge.net/p/xoops/svn/12095
Author: luciorota
Date: 2013-09-26 12:38:11 +0000 (Thu, 26 Sep 2013)
Log Message:
-----------
fixed new late night bugs :-(
Modified Paths:
--------------
XoopsModules/wfdownloads/trunk/wfdownloads/include/functions.php
Modified: XoopsModules/wfdownloads/trunk/wfdownloads/include/functions.php
===================================================================
--- XoopsModules/wfdownloads/trunk/wfdownloads/include/functions.php 2013-09-25 17:04:40 UTC (rev 12094)
+++ XoopsModules/wfdownloads/trunk/wfdownloads/include/functions.php 2013-09-26 12:38:11 UTC (rev 12095)
@@ -119,12 +119,12 @@
// Just to add spacing to the list, to better show the directory tree.
if(is_dir("$path/$file")) {
// Its a directory, so we need to keep reading down...
- $ret[] = "<strong>{$spaces $file}</strong>";
+ $ret[] = "<strong>{$spaces} {$file}</strong>";
$ret = array_merge($ret, wfdownloads_getDir($path . DIRECTORY_SEPARATOR . $file, ($level+1)));
// Re-call this same function but on a new directory.
// this is what makes function recursive.
} else {
- $ret[] = "{$spaces $file}";
+ $ret[] = "{$spaces} {$file}";
// Just print out the filename
}
}
@@ -865,8 +865,8 @@
$criteria->add($expiredCriteria);
if (is_array($cids) && count($cids) > 0) {
$criteria->add(new Criteria('cid', '(' . implode(',', $cids) . ')', 'IN'));
- } elseif ($cid > 0) {
- $criteria->add(new Criteria('cid', (int)$cid));
+ } elseif ($cids > 0) {
+ $criteria->add(new Criteria('cid', (int)$cids));
} else {
return false;
}
|