Changeset View
Changeset View
Standalone View
Standalone View
lib/api/file_list.php
Show All 30 Lines | class file_api_file_list extends file_api_common | ||||
{ | { | ||||
parent::handle(); | parent::handle(); | ||||
if (!isset($this->args['folder']) || $this->args['folder'] === '') { | if (!isset($this->args['folder']) || $this->args['folder'] === '') { | ||||
throw new Exception("Missing folder name", file_api_core::ERROR_CODE); | throw new Exception("Missing folder name", file_api_core::ERROR_CODE); | ||||
} | } | ||||
$params = array( | $params = array( | ||||
'reverse' => rcube_utils::get_boolean((string) $this->args['reverse']), | 'reverse' => rcube_utils::get_boolean((string) ($this->args['reverse'] ?? "")), | ||||
); | ); | ||||
if (!empty($this->args['sort'])) { | if (!empty($this->args['sort'])) { | ||||
$params['sort'] = strtolower($this->args['sort']); | $params['sort'] = strtolower($this->args['sort']); | ||||
} | } | ||||
if (!empty($this->args['search'])) { | if (!empty($this->args['search'])) { | ||||
$params['search'] = $this->args['search']; | $params['search'] = $this->args['search']; | ||||
Show All 15 Lines |