Skip to content

Commit

Permalink
fix fatal error caused by using empty() on a function return
Browse files Browse the repository at this point in the history
  • Loading branch information
bgermann committed Apr 25, 2017
1 parent 666bd94 commit 5c3dbb9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cforms-options.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
<?php
$ti = 1;

// pre-check for verification field
// pre-check for verification field
$ccboxused = false;
$emailtoboxused = false;
$fileupload = false; // only for hide/show options
Expand Down
2 changes: 1 addition & 1 deletion lib_options_sub.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
if (!isset($_REQUEST['cforms_upload_noid']))
$_REQUEST['cforms_upload_noid'] = "";
$cformsSettings['form' . $no]['cforms' . $no . '_noid'] = cforms2_get_boolean_from_request('cforms_upload_noid');
if ($uploadfield && !empty(cforms2_get_from_request('cforms_upload_dir')))
if ($uploadfield && cforms2_get_from_request('cforms_upload_dir') != '')
$cformsSettings['form' . $no]['cforms' . $no . '_upload_dir'] = cforms2_get_from_request('cforms_upload_dir') . '$#$' . cforms2_get_from_request('cforms_upload_dir_url');
$cformsSettings['form' . $no]['cforms' . $no . '_upload_ext'] = cforms2_get_from_request('cforms_upload_ext');
$cformsSettings['form' . $no]['cforms' . $no . '_upload_size'] = cforms2_get_from_request('cforms_upload_size');
Expand Down
4 changes: 4 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ GPL compliance!

== Changelog ==

= 14.13.2 =

* bugfix: fix fatal error caused by using empty() on a function return with PHP < 5.5

= 14.13.1 =

* bugfix: wrong parentheses
Expand Down

0 comments on commit 5c3dbb9

Please sign in to comment.