aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-03-27 00:34:38 +0100
committerMax Kostikov <max@kostikov.co>2019-03-27 00:34:38 +0100
commitb0c33308be48d9d90dddad470bd6434daad700a2 (patch)
tree50e174c23380b7f8b2d9be83917b75d69abbf25f
parent1421c4e9d371c0e09ba9348433062d256c7d13a4 (diff)
downloadvolse-hubzilla-b0c33308be48d9d90dddad470bd6434daad700a2.tar.gz
volse-hubzilla-b0c33308be48d9d90dddad470bd6434daad700a2.tar.bz2
volse-hubzilla-b0c33308be48d9d90dddad470bd6434daad700a2.zip
Fix wrong bracket
-rw-r--r--include/message.php4
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),