diff --git a/CHANGELOG b/CHANGELOG index 695b53f..8fbbeb1 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -200,3 +200,10 @@ messages in the logs. - In the install.sh script, removed the prompts for optional package installation. Code is still there, just turned off by default. + +5.2.4.1 - 2025-12-10 + - Fixed bug in search.php where "Print search results" link on the + search results page resulted in the printable page not showing + any results. This was due to a php fatal error caused by passing + a non-array as the second argument of the php in_array() + function. diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/database-initial.sql b/database-initial.sql index 34c2445..b20a2a0 100644 --- a/database-initial.sql +++ b/database-initial.sql @@ -69,7 +69,7 @@ CREATE TABLE `configs` ( LOCK TABLES `configs` WRITE; /*!40000 ALTER TABLE `configs` DISABLE KEYS */; INSERT INTO `configs` VALUES -(1,'ol_version','5.2.4'), +(1,'ol_version','5.2.4.1'), (2,'log_name','OpenLog'), (3,'banner','1'), (4,'background_color','#003333'), diff --git a/database-update.sql b/database-update.sql index d0e9fd1..70bf59c 100644 --- a/database-update.sql +++ b/database-update.sql @@ -30,3 +30,8 @@ UPDATE configs SET confvalue="5.2.3" WHERE confname="ol_version"; -- Update version number UPDATE configs SET confvalue="5.2.4" WHERE confname="ol_version"; -- -------------------------------------- + +-- ---------- version 5.2.4.1 ------------- +-- Update version number +UPDATE configs SET confvalue="5.2.4.1" WHERE confname="ol_version"; +-- -------------------------------------- diff --git a/db.php_update b/db.php_update index afe3156..b3682d7 100644 --- a/db.php_update +++ b/db.php_update @@ -2,18 +2,22 @@ install_path=$1 -# ---------- version 5.2.1 ------------- +# ---------- version 5.2.1 -------------- # No changes to the db.php file # --------------------------------------- -# ---------- version 5.2.2 ------------- +# ---------- version 5.2.2 -------------- # No changes to the db.php file # --------------------------------------- -# ---------- version 5.2.3 ------------- +# ---------- version 5.2.3 -------------- # No changes to the db.php file # --------------------------------------- -# ---------- version 5.2.4 ------------- +# ---------- version 5.2.4 -------------- +# No changes to the db.php file +# --------------------------------------- + +# ---------- version 5.2.4.1 ------------ # No changes to the db.php file # --------------------------------------- diff --git a/distfiles/CHANGELOG b/distfiles/CHANGELOG index 55d7731..8fbbeb1 100644 --- a/distfiles/CHANGELOG +++ b/distfiles/CHANGELOG @@ -201,3 +201,9 @@ - In the install.sh script, removed the prompts for optional package installation. Code is still there, just turned off by default. +5.2.4.1 - 2025-12-10 + - Fixed bug in search.php where "Print search results" link on the + search results page resulted in the printable page not showing + any results. This was due to a php fatal error caused by passing + a non-array as the second argument of the php in_array() + function. diff --git a/distfiles/search.php b/distfiles/search.php index b7cb32a..6b24153 100644 --- a/distfiles/search.php +++ b/distfiles/search.php @@ -589,9 +589,11 @@ if (!$print) { $flagsperline=8; $flagcount=1; while ($flagcheckbox=mysqli_fetch_assoc($flagslist)) { - if (in_array($flagcheckbox["flagid"],$srchflags)) { - printf("%s", - $flagcheckbox["flagcolor"],$flagcheckbox["flagsym"]); + if ($srchflags) { + if (in_array($flagcheckbox["flagid"],$srchflags)) { + printf("%s", + $flagcheckbox["flagcolor"],$flagcheckbox["flagsym"]); + } } if ($flagcount<$flagsperline) { echo "   "; diff --git a/install.sh b/install.sh index ce9b5a0..82e9816 100755 --- a/install.sh +++ b/install.sh @@ -8,7 +8,7 @@ APP_NAME="OpenLog" DEFAULT_DB_NAME="openlog" -APP_VERSION="5.2.4" +APP_VERSION="5.2.4.1" DOC_ROOT="/var/www" INSTALL_LOC="openlog" APACHE_USER="www-data"