Bug #2422 ยป 2422.patch
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!' );
|
||
}
|
||
}
|
||
|