summaryrefslogtreecommitdiff
path: root/lib/exe
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2014-03-05 21:58:46 +0000
committerChristopher Smith <chris@jalakai.co.uk>2014-03-05 21:58:46 +0000
commit0e80bb5e347ff00c6f81627d8e39dafaaa923bc5 (patch)
tree19e8450aeef463ffe7278e3fb5e8888940113b4a /lib/exe
parent17dd401e94c682034b7f3d9164ac3523ab01d825 (diff)
downloadrpg-0e80bb5e347ff00c6f81627d8e39dafaaa923bc5.tar.gz
rpg-0e80bb5e347ff00c6f81627d8e39dafaaa923bc5.tar.bz2
use empty() where array values might not be set
Diffstat (limited to 'lib/exe')
-rw-r--r--lib/exe/mediamanager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/exe/mediamanager.php b/lib/exe/mediamanager.php
index d94a24c74..7044232ce 100644
--- a/lib/exe/mediamanager.php
+++ b/lib/exe/mediamanager.php
@@ -57,7 +57,7 @@
}
// give info on PHP caught upload errors
- if($_FILES['upload']['error']){
+ if(!empty($_FILES['upload']['error'])){
switch($_FILES['upload']['error']){
case 1:
case 2:
@@ -71,7 +71,7 @@
}
// handle upload
- if($_FILES['upload']['tmp_name']){
+ if(!empty($_FILES['upload']['tmp_name'])){
$JUMPTO = media_upload($NS,$AUTH);
if($JUMPTO) $NS = getNS($JUMPTO);
}