aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-23 22:56:32 -0800
committerfriendica <info@friendica.com>2013-12-23 22:56:32 -0800
commit71dde7c6875c85e4bfbe6e2eadecaf0bbc9fd20c (patch)
tree3cd31db5480143b571055373b8f5b9514dc54be7
parent80879369e7f11a5ffd69e34e9797db47f76bfc24 (diff)
downloadvolse-hubzilla-71dde7c6875c85e4bfbe6e2eadecaf0bbc9fd20c.tar.gz
volse-hubzilla-71dde7c6875c85e4bfbe6e2eadecaf0bbc9fd20c.tar.bz2
volse-hubzilla-71dde7c6875c85e4bfbe6e2eadecaf0bbc9fd20c.zip
use case-insensitive array search for matching directory keywords with your own
-rw-r--r--doc/To-Do-Code.md2
-rw-r--r--mod/dirprofile.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/To-Do-Code.md b/doc/To-Do-Code.md
index dc2ba8245..2d9228e88 100644
--- a/doc/To-Do-Code.md
+++ b/doc/To-Do-Code.md
@@ -23,7 +23,7 @@ We need much more than this, but here are areas where developers can help. Pleas
* Extend WebDAV to provide desktop access to photo albums and existing file (attachment) storage
-* Directory - provide a hover popup providing much more detail about the channel of interest. Keywords, additional public profile details, perhaps the last public post, anything else of interest.
+* Directory - provide a hover popup providing much more detail about the channel of interest. Keywords, additional public profile details, perhaps the last public post, anything else of interest. [Update - we now have this, but it can be improved.]
* Events module - bring back birthday reminders for friends, fix permissions on events, and provide JS translation support for the calendar overview
diff --git a/mod/dirprofile.php b/mod/dirprofile.php
index dd583a89e..01a0debfc 100644
--- a/mod/dirprofile.php
+++ b/mod/dirprofile.php
@@ -132,7 +132,7 @@ function dirprofile_init(&$a) {
foreach($karr as $k) {
if(strlen($out))
$out .= ', ';
- if($marr && in_array($k,$marr))
+ if($marr && in_arrayi($k,$marr))
$out .= '<strong>' . $k . '</strong>';
else
$out .= $k;