Commit b0c33308 authored by Max Kostikov's avatar Max Kostikov

Fix wrong bracket

parent 1421c4e9
Pipeline #122561 passed with stage
in 7 minutes and 6 seconds
......@@ -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),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment