Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
X Lib
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
XLibs
X Lib
Commits
cc58c4da
Commit
cc58c4da
authored
Jul 18, 2016
by
Alex Ne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Вот как-то нельзя отправлять параметр с другим типом!
parent
74a2bc49
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
MySQLi.php
DB/MySQLi.php
+6
-3
No files found.
DB/MySQLi.php
View file @
cc58c4da
<?php
/*
НЕ ТРОЖ!!! :)
*/
class
XDatabaseParamError
extends
\X\ETrace\System
{}
class
X_DB_MySQLi
{
/**
* @var array
...
...
@@ -335,6 +334,10 @@ class X_DB_MySQLi {
* @return mixed
*/
public
function
delete_in
(
$table
,
$column
,
$data
)
{
if
(
!
is_array
(
$data
))
{
throw
new
XDatabaseParamError
(
"Param 'data' must have type array in function 'db->delete_in( string table, sting column, array data)'"
,
0
);
}
if
(
!
(
count
(
$data
)
>
0
))
{
return
false
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment