From 2d7c72f20cf43dd698453fc6f303def8fcaef36c Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com> Date: Sun, 19 Jan 2025 13:43:25 +0100 Subject: [PATCH] Fixes for Wamp server --- application/migrations/134_create_label_paper_types_table.php | 2 +- application/models/Update_model.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/migrations/134_create_label_paper_types_table.php b/application/migrations/134_create_label_paper_types_table.php index 6159628e7..660d1b739 100644 --- a/application/migrations/134_create_label_paper_types_table.php +++ b/application/migrations/134_create_label_paper_types_table.php @@ -21,7 +21,7 @@ class Migration_create_label_paper_types_table extends CI_Migration { 'paper_name' => array( 'type' => 'VARCHAR', - 'constraint' => '250', + 'constraint' => '191', ), 'metric' => array( diff --git a/application/models/Update_model.php b/application/models/Update_model.php index c3f0c6940..39b6627c9 100644 --- a/application/models/Update_model.php +++ b/application/models/Update_model.php @@ -271,7 +271,7 @@ class Update_model extends CI_Model { $result=curl_exec($ch); curl_close($ch); $json = json_decode($result, true); - $latest_tag = $json[0]['tag_name']; + $latest_tag = $json[0]['tag_name'] ?? 'Unknown'; return $latest_tag; }