aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Update/_1235.php
blob: e457a35d2ea2f4f00884fa7a06c03c20c6b9a34a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

namespace Zotlabs\Update;

class _1235 {

	function run() {
	
		q("START TRANSACTION");

		$r = q("DELETE FROM app WHERE app_name = '%s' AND app_system = 1",
			dbesc('Mail')
		);

		if($r) {
			q("COMMIT");
			return UPDATE_SUCCESS;
		}

		q("ROLLBACK");
		return UPDATE_FAILED;

	}

}