api_demo errors

Help
JohnneyBoy
2007-10-16
2013-04-29
  • JohnneyBoy
    JohnneyBoy
    2007-10-16

    Hello,

    I have jjust tried opennab 0.08, when going to the demo_api page I ge the following error about 10 times....

    Notice: Undefined index: demo in /home/www/nab/docs/vl/api_demo/index.php on line 56

    However, by clicking on one of the hyperlinks following the error, the correct api_demo page appears.

    I have not made any changes to the config, it's 'straight out the box'

    John

     
    • Olivier Azeau
      Olivier Azeau
      2007-10-20

      Hello,

      Actually, it's only a warning message which causes no error.
      I think the following line 56 solves the issue :
          if( @$_REQUEST['demo'] == $demo->Name() )

      It will be included in version 0.09

      Olivier