22 lines
866 B
PHP
22 lines
866 B
PHP
|
|
<?php
|
||
|
|
/* * *******************************************************************************
|
||
|
|
* The content of this file is subject to the Calculate Fields 4 You license.
|
||
|
|
* ("License"); You may not use this file except in compliance with the License
|
||
|
|
* The Initial Developer of the Original Code is IT-Solutions4You s.r.o.
|
||
|
|
* Portions created by IT-Solutions4You s.r.o. are Copyright(C) IT-Solutions4You s.r.o.
|
||
|
|
* All Rights Reserved.
|
||
|
|
* ****************************************************************************** */
|
||
|
|
|
||
|
|
class ITS4YouCalculateFields_SetNullValueHook_Helper
|
||
|
|
{
|
||
|
|
|
||
|
|
public static function callHook($ForFD)
|
||
|
|
{
|
||
|
|
global $adb;
|
||
|
|
|
||
|
|
$sql_u1 = 'UPDATE ' . $ForFD['table'] . ' SET ' . $ForFD['column'] . ' = ?';
|
||
|
|
if ('' === $_SERVER['REMOTE_ADDR']) {
|
||
|
|
// $adb->pquery($sql_u1, array('0'));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|