added more curly braces + a bit more usage of dbm::is_result()
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
55e2411f07
commit
3849e7c9ff
5 changed files with 160 additions and 97 deletions
|
@ -311,7 +311,7 @@ function update_1031() {
|
|||
$r = q("SELECT `id`, `object` FROM `item` WHERE `object` != '' ");
|
||||
if (dbm::is_result($r)) {
|
||||
foreach ($r as $rr) {
|
||||
if(strstr($rr['object'],'type="http')) {
|
||||
if (strstr($rr['object'],'type="http')) {
|
||||
q("UPDATE `item` SET `object` = '%s' WHERE `id` = %d",
|
||||
dbesc(str_replace('type="http','href="http',$rr['object'])),
|
||||
intval($rr['id'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue