Project

General

Profile

Bug #2422 ยป 2422.patch

krileon, 16 March 2011 16:57

View differences:

components/com_comprofiler/plugin/user/plug_cbgroupjive/plugins/cbgroupjivephoto/cbgroupjivephoto.php
$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 ) {
......
$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!' );
}
}
    (1-1/1)