Changeset 55c9542 for app/Http/Controllers/Dashboard
- Timestamp:
- 10/25/21 13:24:45 (3 years ago)
- Branches:
- develop, master
- Children:
- e954f3e
- Parents:
- 13ff930
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Http/Controllers/Dashboard/DepartmentsController.php
r13ff930 r55c9542 127 127 $folders = Folder::where('department_id', $department->id)->get(); 128 128 } 129 foreach ($folders as $folder){ 130 if($folder->no_of_files > 0){ 131 $flag=true; 129 if($folders->where('no_of_files' > 0)->count()) { 130 $flag = true; 132 131 break; 133 }134 132 } 135 133 } … … 172 170 $flag = false; 173 171 174 foreach($folders as $folder){ 175 if($folder->no_of_files > 0) 176 $flag=true; 177 break; 178 } 172 if($folders->where('no_of_files' > 0)->count()){ 173 $flag = true; 174 } 179 175 180 176 if($flag) {
Note:
See TracChangeset
for help on using the changeset viewer.