Skip to content

Commit 36ea5b8

Browse files
authored
Merge pull request #19 from nguyenanhung/v3.1.14-develop
V3.1.14 develop
2 parents 3b1d111 + 3945d6d commit 36ea5b8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

hungng/HungNG_CI_Base_Controllers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ protected function log($name = '', $message = '', $context = array(), $inputLeve
344344
default:
345345
$keyLevel = Monolog\Logger::INFO;
346346
}
347-
if (directory_exists(__DIR__ . '/../../../../storage/logs')) {
347+
if (is_dir(__DIR__ . '/../../../../storage/logs')) {
348348
$logPath = realpath(__DIR__ . '/../../../../storage/logs') . '/';
349349
} elseif (defined('APPPATH')) {
350350
$logPath = APPPATH . '/logs-data/';

hungng/HungNG_CI_Base_Module.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ protected function log($name = '', $message = '', $context = array(), $inputLeve
344344
default:
345345
$keyLevel = Monolog\Logger::INFO;
346346
}
347-
if (directory_exists(__DIR__ . '/../../../../storage/logs')) {
347+
if (is_dir(__DIR__ . '/../../../../storage/logs')) {
348348
$logPath = realpath(__DIR__ . '/../../../../storage/logs') . '/';
349349
} elseif (defined('APPPATH')) {
350350
$logPath = APPPATH . '/logs-data/';

hungng/HungNG_Custom_Based_model.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,8 @@ public function build_order_result($order_by_field, $direction = 'desc', $field
316316
$tableName = '';
317317
}
318318
if (isset($order_by_field) && is_array($order_by_field) && count($order_by_field) > 0) {
319-
foreach ($order_by_field as $field) {
320-
$this->db->order_by($tableName . $field['field_name'], $field['order_value']);
319+
foreach ($order_by_field as $f) {
320+
$this->db->order_by($tableName . $f['field_name'], $f['order_value']);
321321
}
322322
} else {
323323
$direction = strtoupper(trim($direction));

0 commit comments

Comments
 (0)