--- a/admin/linkAmendments.php +++ b/admin/linkAmendments.php @@ -1,8 +1,6 @@ <?php -if (php_sapi_name() != "cli") { - include_once ("../lib/common.inc.php"); -auth(); + $query = 'update contractnotice set "parentCN" = null where "parentCN" = \'0\''; $query = $conn->prepare($query); $query->execute(); @@ -61,6 +59,6 @@ else print_r($errors); } } -} + ?>