mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-23 10:08:38 +00:00
Update logbook_model.php
Needed to check for existence of 'freq' in log.
This commit is contained in:
parent
9cc5962e55
commit
b750276dad
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user