aboutsummaryrefslogblamecommitdiffstats
path: root/Zotlabs/Update/_1151.php
blob: 20f3180a07e9f95e25ef0db8747c6523d4aae80f (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                                             
                                                                        











                                                  
 
<?php

namespace Zotlabs\Update;

class _1151 {
function run() {

	$r3 = q("select likes.*, item.mid from likes left join item on likes.iid = item.id");
	if($r3) {
		foreach($r3 as $rr) {
			q("update likes set i_mid = '%s' where id = %d",
				dbesc($rr['mid']),
				intval($rr['id'])
			);
		}
	}


	return UPDATE_SUCCESS;

}


}