Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

Commit

Permalink
Update msd
Browse files Browse the repository at this point in the history
  • Loading branch information
JustCarmen committed Jun 18, 2017
1 parent 915b853 commit 10d6e18
Show file tree
Hide file tree
Showing 2 changed files with 155 additions and 154 deletions.
17 changes: 9 additions & 8 deletions vendor/r23/msd/inc/functions_sql.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
MyOOS [Dumper]
http://www.oos-shop.de/
Copyright (c) 2016 by the MyOOS Development Team.
Copyright (c) 2017 by the MyOOS Development Team.
----------------------------------------------------------------------
Based on:
Expand Down Expand Up @@ -233,7 +233,6 @@ function DB_Copy($source, $destination, $drop_source=0, $insert_data=1)
{

$table=strtolower($row[0]);
$table.='xxxxxxxxxxxxxxxxralf';
$sqlt="SHOW CREATE TABLE `$source`.`$table`";
$res=MSD_query($sqlt);
if ($res)
Expand Down Expand Up @@ -1077,16 +1076,18 @@ function ChangeKeys($ok, $nk, $fld, $size, $restriction='')
function build_where_from_record($data)
{
if (!is_array($data)) return false;
$ret='';
$ret = '';
foreach ($data as $key=>$val)
{
$val=str_replace('<span class="treffer">','',$val);
$val=str_replace('</span>','',$val);
if (!empty($val)){
$ret.='`' . $key . '`="' . addslashes($val) . '" AND ';
$val = str_replace('<span class="treffer">','',$val);
$val = str_replace('</span>','',$val);
$nLen = strlen($val);
if (!empty($val) && ($nLen < 200)){
$ret .='`' . $key . '`="' . addslashes($val) . '" AND ';
}
}
$ret=substr($ret,0,-5);
$ret = substr($ret,0,-5);

return $ret;
}

Expand Down
Loading

0 comments on commit 10d6e18

Please sign in to comment.