[TEP-COMMIT] [CVS admin] only check the destination directory if it has been set

anonymous-OfajU3CKLf1/[email protected] 3 Aug 2004 10:54:53 -0000
Newsgroups gmane.comp.web.oscommerce.cvs
Message-ID <[email protected]>
Commit in admin/admin/includes/classes on MAIN

upload.php +5 -1 1.3 -> 1.4

only check the destination directory if it has been set

----------

admin /admin /includes /classes

upload.php 1.3 -> 1.4

diff -u -r1.3 -r1.4
--- upload.php 2004/07/22 23:08:18 1.3
+++ upload.php 2004/08/03 10:54:52 1.4
@@ -74,7 +74,11 @@

$this->set_filename($file['name']);
$this->set_tmp_filename($file['tmp_name']);

- return $this->check_destination();

+ if (tep_not_null($this->destination)) {
+ return $this->check_destination();
+ } else {
+ return true;
+ }

} else {
if ($this->message_location == 'direct') {
$messageStack->add(WARNING_NO_FILE_UPLOADED, 'warning');

CVSspam 0.2.8

-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com