mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 06:15:11 +00:00
make sure this sucker is quiet
This commit is contained in:
parent
2bd3dc6101
commit
ccf4734f7b
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ function wall_attach_post(&$a) {
|
|||
|
||||
|
||||
if($_FILES['userfile']['tmp_name']) {
|
||||
$x = getimagesize($_FILES['userfile']['tmp_name']);
|
||||
$x = @getimagesize($_FILES['userfile']['tmp_name']);
|
||||
if(($x) && ($x[2] === IMG_GIF || $x[2] === IMG_JPG || $x[2] === IMG_JPEG || $x[2] === IMG_PNG)) {
|
||||
$args = array( 'source' => 'editor', 'visible' => 0, 'contact_allow' => array($channel['channel_hash']));
|
||||
$ret = photo_upload($channel,$observer,$args);
|
||||
|
|
Loading…
Reference in a new issue