summaryrefslogtreecommitdiffstats
path: root/modules-available/serversetup-bwlp-ipxe/inc/bootentry.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2023-10-23 15:32:39 +0200
committerSimon Rettberg2023-10-23 15:32:39 +0200
commit82b11b576b80d6667c6ef08466bde38bff68b5d7 (patch)
tree39f63c66be523b58ecc223317d1d2ec18cf21c05 /modules-available/serversetup-bwlp-ipxe/inc/bootentry.inc.php
parent[minilinux] Some more 8.x warnings (diff)
downloadslx-admin-82b11b576b80d6667c6ef08466bde38bff68b5d7.tar.gz
slx-admin-82b11b576b80d6667c6ef08466bde38bff68b5d7.tar.xz
slx-admin-82b11b576b80d6667c6ef08466bde38bff68b5d7.zip
[serversetup-bwlp-ipxe] Fix missing column in query
Diffstat (limited to 'modules-available/serversetup-bwlp-ipxe/inc/bootentry.inc.php')
-rw-r--r--modules-available/serversetup-bwlp-ipxe/inc/bootentry.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/inc/bootentry.inc.php b/modules-available/serversetup-bwlp-ipxe/inc/bootentry.inc.php
index eb57c596..2abb5153 100644
--- a/modules-available/serversetup-bwlp-ipxe/inc/bootentry.inc.php
+++ b/modules-available/serversetup-bwlp-ipxe/inc/bootentry.inc.php
@@ -47,7 +47,7 @@ abstract class BootEntry
* Return a BootEntry instance from the serialized data.
*
* @param string $module module this entry belongs to, or special values .script/.exec
- * @param string $jsonString serialized entry data
+ * @param string $data serialized entry data
* @return BootEntry|null instance representing boot entry, null on error
*/
public static function fromJson($module, $data)
@@ -134,7 +134,7 @@ abstract class BootEntry
*/
public static function getAll()
{
- $res = Database::simpleQuery("SELECT entryid, data FROM serversetup_bootentry");
+ $res = Database::simpleQuery("SELECT entryid, module, data FROM serversetup_bootentry");
$ret = [];
foreach ($res as $row) {
$tmp = self::fromJson($row['module'], $row['data']);