]> source.dussan.org Git - nextcloud-server.git/commit
Prevent error in files_trashbin
authorRobin McCorkell <rmccorkell@karoshi.org.uk>
Sun, 13 Apr 2014 13:46:37 +0000 (14:46 +0100)
committerRobin McCorkell <rmccorkell@karoshi.org.uk>
Sun, 13 Apr 2014 13:51:33 +0000 (14:51 +0100)
commit869e7a51f0ed5b24c1ee0714112edb71e7dd1b62
tree5ea8b631e02cf9f95dfb0648a012e4e93e93f4b3
parentfa8814902e9012880179e61ea846a7d85e3079f8
Prevent error in files_trashbin

`glob` can return FALSE when the directory is empty, instead of an empty array,
causing an error at `foreach`.

"Note: On some systems it is impossible to distinguish between empty match and
an error."

See http://www.php.net/manual/en/function.glob.php -> Return Values
apps/files_trashbin/lib/trashbin.php