Modify ↓
Opened 3 years ago
Closed 3 years ago
#2424 closed Bug/Fehler (fixed)
check_update.php listet Händlerbund Modul immer als inaktiv
| Reported by: | Torsten Riemer | Owned by: | Gerhard Waldemair |
|---|---|---|---|
| Priority: | normal | Milestone: | modified-shop-2.0.8.0 |
| Component: | Module | Version: | 2.0.7.1 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description (last modified by )
Die "check_update.php" listet das Händlerbund Modul immer als inaktiv, obwohl "HAENDLERBUND_KEY" gesetzt ist.
Das Problem wird da liegen, dass "HAENDLERBUND_KEY" kein "true" oder "false" enthält, sondern den individuellen Konfigurationsschlüssel, entsprechend kann folgende Abfrage in der "/inc/check_version_update.inc.php" nie den Status installed = 1 zurückgeben:
if (xtc_db_num_rows($check_query) > 0) {
$details[$heading][$module]['installed'] = 2;
while ($check = xtc_db_fetch_array($check_query)) {
if (strtolower($check['configuration_value']) == 'true') {
$details[$heading][$module]['installed'] = 1;
break;
}
}
}
Folgende Änderung würde das Problem lösen:
if (xtc_db_num_rows($check_query) > 0) {
$details[$heading][$module]['installed'] = 2;
while ($check = xtc_db_fetch_array($check_query)) {
if (strtolower($check['configuration_value']) == 'true') {
$details[$heading][$module]['installed'] = 1;
break;
}
if (strtolower($check['configuration_value']) != '' && strtolower($check['configuration_value']) != 'true' && strtolower($check['configuration_value']) != 'false') {
$details[$heading][$module]['installed'] = 1;
break;
}
}
}
Attachments (0)
Change History (2)
comment:1 by , 3 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 3 years ago
| Owner: | set to |
|---|---|
| Resolution: | → fixed |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

In 14929: