Quote Originally Posted by Design75 View Post
If I am correct those lines around 140 in YOUR_ADMIN/ezpage.php, look now like this
PHP Code:
      if ($pages_html_text != '' and strlen(trim($pages_html_text)) > 6) {
        
$zv_link_method_cnt++;
      } 
try changing it to
PHP Code:
      for ($i 0$n sizeof($languages); $i $n$i++) {
        if (
$pages_html_text[$languages[$i]['id']] != '' and strlen(trim($pages_html_text[$languages[$i]['id']])) > 6) {
          
$zv_link_method_cnt++;
        }
      } 
Minor correction to the above because the line(s) that follow are a check against $zv_link_method_cnt to ensure that there is one and only one assignment to any of html_text, an internal link, or an external link. If two or more of those have an assignment then an error message is presented.

Because in this multi-language module there is only one aspect that is multi-language (the html_text) and not a different option for each of the above three, then if any of the three are populated then none of the other three should be. Therefore in the replacement code, if any of the language text boxes are populated (need not be all of them) then don't increment $zv_link_method_cnt any more after the first time it is incremented (break)...

In YOUR_ADMIN/ezpage.php, "looked" like this
PHP Code:
      if ($pages_html_text != '' and strlen(trim($pages_html_text)) > 6) {
        
$zv_link_method_cnt++;
      } 
should be changed to:

PHP Code:
      for ($i 0$n sizeof($languages); $i $n$i++) {
        if (
$pages_html_text[$languages[$i]['id']] != '' and strlen(trim($pages_html_text[$languages[$i]['id']])) > 6) {
          
$zv_link_method_cnt++;
          break;
        }
      }