mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-18 21:36:21 +00:00
minor regex optimization
probably not really neccessary but it was ment to improve speed since the replacment only takes place - at the beginning of the string - once
This commit is contained in:
parent
a3accd7a77
commit
822f969afc
@ -148,7 +148,7 @@ class OcSmsApp extends App {
|
||||
|
||||
if (isset ($r["PHOTO"])) {
|
||||
// Remove useless prefix
|
||||
$photoURL = preg_replace("#VALUE=uri:#","",$r["PHOTO"]);
|
||||
$photoURL = preg_replace("#^VALUE=uri:#","",$r["PHOTO"], 1);
|
||||
self::$contactPhotos[$r["FN"]] = $photoURL;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user