mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 04:31:32 +00:00
set number of folders found in search() to 0
This was set to late and in case the ѕearch for folders was not done a php warning was issued
This commit is contained in:
parent
c7d80e8dd4
commit
a6972545fd
|
@ -571,6 +571,7 @@ class SeedDMS_Core_DMS {
|
||||||
$searchin=array(1, 2, 3, 4);
|
$searchin=array(1, 2, 3, 4);
|
||||||
|
|
||||||
/*--------- Do it all over again for folders -------------*/
|
/*--------- Do it all over again for folders -------------*/
|
||||||
|
$totalFolders = 0;
|
||||||
if($mode & 0x2) {
|
if($mode & 0x2) {
|
||||||
$searchKey = "";
|
$searchKey = "";
|
||||||
$searchFields = array();
|
$searchFields = array();
|
||||||
|
@ -650,7 +651,6 @@ class SeedDMS_Core_DMS {
|
||||||
/* Do not search for folders if not at least a search for a key,
|
/* Do not search for folders if not at least a search for a key,
|
||||||
* an owner, or creation date is requested.
|
* an owner, or creation date is requested.
|
||||||
*/
|
*/
|
||||||
$totalFolders = 0;
|
|
||||||
if($searchKey || $searchOwner || $searchCreateDate) {
|
if($searchKey || $searchOwner || $searchCreateDate) {
|
||||||
// Count the number of rows that the search will produce.
|
// Count the number of rows that the search will produce.
|
||||||
$resArr = $this->db->getResultArray("SELECT COUNT(*) AS num ".$searchQuery);
|
$resArr = $this->db->getResultArray("SELECT COUNT(*) AS num ".$searchQuery);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user