UnrealCatze / FigureDatabase

FigureDatabase
GNU General Public License v3.0
1 stars 0 forks source link

habe ein paar index fehler und finde nichts #42

Closed UnrealCatze closed 7 years ago

UnrealCatze commented 7 years ago

admin_figurelib_settings.php /site/infusions/figurelib/admin.php?aid=xxxxxxxxxxxxx&section=figurelib_settings ** Line: 99

Severity : Run-time notices Undefined index: figure_amazon_jp admin_figurelib_settings.php /site/infusions/figurelib/admin.php?aid=xxxxxxxxxxxxxxxx&section=figurelib_settings ** Line: 101

hier der code der zeilen .. ist eigentlich rifhrig

    "figure_photo_max_h"            => form_sanitizer($_POST['figure_photo_max_h'],          1600, "figure_photo_max_h"),
    "figure_photo_cat_max_w"        => form_sanitizer($_POST['figure_photo_cat_max_w'],      1800, "figure_photo_cat_max_w"),
    "figure_photo_cat_max_h"        => form_sanitizer($_POST['figure_photo_cat_max_h'],      1600, "figure_photo_cat_max_h"),
    "figure_photo_man_max_w"        => form_sanitizer($_POST['figure_photo_man_max_w'],      1800, "figure_photo_man_max_w"),
    "figure_photo_man_max_h"        => form_sanitizer($_POST['figure_photo_man_max_h'],      1600, "figure_photo_man_max_h"),

    "figure_photo_max_b"            => form_sanitizer($_POST['calc_b'], 150, "calc_b") * form_sanitizer($_POST['calc_c'], 100000, "calc_c"),                
    "figure_photo_cat_max_b"        => form_sanitizer($_POST['calc_b_cat'], 150, "calc_b_cat") * form_sanitizer($_POST['calc_c_cat'], 100000, "calc_c_cat"),
    "figure_photo_man_max_b"        => form_sanitizer($_POST['calc_b_man'], 150, "calc_b_man") * form_sanitizer($_POST['calc_c_man'], 100000, "calc_c_man"),

    "figure_amazon_de"              => form_sanitizer($_POST['figure_amazon_de'],      0, "figure_amazon_de"),
    "figure_amazon_uk"              => form_sanitizer($_POST['figure_amazon_uk'],      0, "figure_amazon_uk"),
    "figure_amazon_fr"              => form_sanitizer($_POST['figure_amazon_fr'],      0, "figure_amazon_fr"),
    "figure_amazon_es"              => form_sanitizer($_POST['figure_amazon_es'],      0, "figure_amazon_es"),
    "figure_amazon_it"              => form_sanitizer($_POST['figure_amazon_it'],      0, "figure_amazon_it"),
    "figure_amazon_jp"              => form_sanitizer($_POST['figure_amazon_jp'],      0, "figure_amazon_jp"),
    "figure_amazon_com"             => form_sanitizer($_POST['figure_amazon_com'],     0, "figure_amazon_com"),
    "figure_amazon_ca"              => form_sanitizer($_POST['figure_amazon_ca'],      0, "figure_amazon_ca")
UnrealCatze commented 7 years ago

das ist die lösung

    "figure_amazon_de"                      => isset($_POST['figure_amazon_de'])                                ? "1" : "0",
    "figure_amazon_uk"                      => isset($_POST['figure_amazon_uk'])                                ? "1" : "0",
    "figure_amazon_fr"                      => isset($_POST['figure_amazon_fr'])                                ? "1" : "0",
    "figure_amazon_es"                      => isset($_POST['figure_amazon_es'])                                ? "1" : "0",
    "figure_amazon_it"                      => isset($_POST['figure_amazon_it'])                                ? "1" : "0",
    "figure_amazon_jp"                      => isset($_POST['figure_amazon_jp'])                                ? "1" : "0",
    "figure_amazon_com"                     => isset($_POST['figure_amazon_com'])                               ? "1" : "0",
    "figure_amazon_ca"                      => isset($_POST['figure_amazon_ca'])                                ? "1" : "0"