Update logbook_model.php
Needed to check for existence of 'freq' in log.
这个提交包含在:
父节点
9cc5962e55
当前提交
b750276dad
共有 1 个文件被更改,包括 7 次插入 和 2 次删除
|
|
@ -695,8 +695,13 @@ class Logbook_model extends CI_Model {
|
|||
}
|
||||
|
||||
// Store Freq
|
||||
$cleanfreq = preg_replace('#\W#', '', $record['freq']);
|
||||
$freqlng = strlen($cleanfreq);
|
||||
// Check if 'freq' is defined in the import?
|
||||
if (isset($record['freq'])){
|
||||
$cleanfreq = preg_replace('#\W#', '', $record['freq']);
|
||||
$freqlng = strlen($cleanfreq);
|
||||
}else{
|
||||
$freqlng = 0;
|
||||
}
|
||||
if(isset($record['freq']) && $freqlng < 7 ) {
|
||||
$cleansedstring = preg_replace('#\W#', '', $record['freq']);
|
||||
$freq = $cleansedstring."000";
|
||||
|
|
|
|||
正在加载…
在新工单中引用