# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. --- components/com_comprofiler/plugin/user/plug_cbgroupjive/plugins/cbgroupjivephoto/cbgroupjivephoto.php +++ components/com_comprofiler/plugin/user/plug_cbgroupjive/plugins/cbgroupjivephoto/cbgroupjivephoto.php @@ -396,7 +396,6 @@ $row->group = ( $row->group ? $row->group : $group->id ); $row->title = trim( strip_tags( stripslashes( cbGetParam( $_POST, 'photo_title', null ) ) ) ); $row->description = trim( strip_tags( stripslashes( cbGetParam( $_POST, 'photo_description', null ) ) ) ); - $row->image = trim( strip_tags( stripslashes( cbGetParam( $_POST, 'photo_image', null ) ) ) ); $row->date = ( $row->date ? $row->date : cbgjClass::dateDB() ); if ( ! $row->user_id ) { @@ -422,10 +421,10 @@ $row->image = $image; } - if ( $row->image == '' ) { - $error = CBTxt::T( 'Image not specified!' ); - } elseif ( isset( $image->_errMSG ) ) { + if ( isset( $image->_errMSG ) ) { $error = CBTxt::T( str_replace( 'Error: ', '', $image->_errMSG ) ); + } elseif ( ! $row->image ) { + $error = CBTxt::T( 'Image not specified!' ); \ No newline at end of file } }