diff options
Diffstat (limited to 'include/message.php')
-rw-r--r-- | include/message.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/message.php b/include/message.php index ae19b84b0..2486beb83 100644 --- a/include/message.php +++ b/include/message.php @@ -220,8 +220,8 @@ function send_message($uid = 0, $recipient = '', $body = '', $subject = '', $rep foreach($images as $image) { if(! stristr($image,z_root() . '/photo/')) continue; - $image_uri = substr($image, strrpos($image,'/') + 1); - $image_uri = substr($image_uri, 0, strpos($image_uri, '.' - 2)); + $image_uri = substr($image, strrpos($image, '/') + 1); + $image_uri = substr($image_uri, 0, strpos($image_uri, '.') - 2); $r = q("UPDATE photo SET allow_cid = '%s' WHERE resource_id = '%s' AND uid = %d and allow_cid = '%s'", dbesc('<' . $recipient . '>'), dbesc($image_uri), |